Hello QC Support,
I would like to train my ML model on specific date intervals. These training date intervals are prior to the backtest start date. I do not want to do any training between the backtest start and end dates. I want to train the ML model only once prior to the backtest start date.
Once the ML model is trained, I shall call MLmodel.predict() using the previously trained model for every backtest daily iteration. I don't want to do any training during the backtest period.
Please suggest how I can set that up. And I hope that was easy to understand :)
Thanks / Sheikh
Varad Kabade
Hi Sheikh,
We can train the ML model at the required training days in the backtest or in the research environment and store the model parameters using the ObjectStore, retrieved and deployed in the Backtest. Refer to the following link regarding using ObjectStore for more information. Alternatively, we can train the model during algorithm warmup if our training period is continuous and before our backtest start date:Â
Best,
Varad KabadeÂ
Sheikh Pancham
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!