Results changed after running the strategy

I am using a machine learning model in a strategy, and the results of the return are changed each time I run the strategy, taking into consideration that I fixed the time frame of backtesting and all parameters fixed as well.

Hi Ahmed,



You can fix the "random_state" parameter to keep strategy behaviour the same on every run. You can also refer to the following link to know more about this parameter -



https://scikit-learn.org/stable/glossary.html#term-random_state



Thanks,

Akshay

Thanks