Skip to content

使用拟合好的模型,使用alpha158数据集仅进行预测时最少需要加载多长的历史数据集? #1544

@qengli

Description

@qengli

❓ 例如我使用以下配置加载数据预测2023-06-07的score, test的起止日期设置多少合适?

因为加载处理数据比较费时,如果我只做预测,希望加载的数据集越小越好,理论上来说如果预测2023-06-07的值,test的起止日期段最短可以设置为多少? 谢谢!

dataset_conf = {
    "class": "DatasetH",
    "module_path": "qlib.data.dataset",
    "kwargs": {
        "handler": hd,
        "segments": {
            #"train": ("2008-01-01", "2014-12-31"),
            #"valid": ("2015-01-01", "2016-12-31"),
            "test": ("2023-03-05", "2023-06-06"),
        },
    },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstale

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions