Feature Selection for a linear model with a Genetic Algorithm vs Ridge Regression

Pitmaster,

Thank you for suggesting a custom scorer. The scorer here is the average weekly returns for 15-stocks rebalanced weekly using a P123 download.

Here is how it worked. Converges fairly quickly but the ML model still probably needs to be fast. Ridge regression here.

Fitness is the average weekly returns over the validation period. Validation set: tscv = TimeSeriesSplit(n_splits=5, gap=1).

Jim

1 Like