Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滚动步长step和再平衡间隔。 #1385

Open
quant2008 opened this issue Dec 6, 2022 · 0 comments
Open

滚动步长step和再平衡间隔。 #1385

quant2008 opened this issue Dec 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@quant2008
Copy link

在这个例子https://github.com/microsoft/qlib/blob/main/examples/benchmarks_dynamic/baseline/rolling_benchmark.py中,
滚动步长step是20天,预测长度horizon是20天。
每次滚动中,测试集长度也是20天(估计是由horizon决定的),也就这20天中每天都在再平衡,不知我的理解对否。

而我想要的是每次滚动中,滚动步长20天,预测长度是20天,但测试集长度为1天,也就是我想每20天再平衡一次。这相当于实盘中,每20天做一次训练和预测和调仓。也就是两次再平衡调仓间隔20天,间隔中间不调仓。不知怎样实现这个要求。

@quant2008 quant2008 added the enhancement New feature or request label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant