I am currently doing some tests with an algorithm that supports parameters as input. To do so I am updating my config.json file in my local project folder with my parameters used and running my algorithm locally. When inspecting the backtest results folder, I don't see any trace of what parameters were used in the individual executions. I was thinking that the ‘config’ file in the backtest folder would contain the configuration used for that particular backtest, but my parameters are not there. Nor can I find any trace of the parameters used when doing a grep search on the contents of the backtest folder. It would make sense for some record of the parameters used in the test be output in the backtest folder, just as there is a record of the project code used, logs, results, etc. Recording the parameters used would be helpful in comparing results between test runs. Is there something I'm missing or should this be added to the output in a future update? Is it left up to the user to keep track of what parameter values are used between backtests?
Varad Kabade
Hi Midaroh,
Thank you for your patience. We recommend you log the parameter values at the start of the backtest inside the Initialize method to be accessible in the backtest logs.
Best,
Varad Kabade
Midaroh
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!