This is also based on the forum post with the machine learning example. Algorithms that use a random forest can produce very different results with each backtest, so I modified the algorithm to use four random forests. This method may be able to generate alpha with much less variability. I tried to test it with 10 models but it returned an error, apparently using five at a time is the maximum.