Kerry Back
from sklearn.tree import plot_tree _ = plot_tree(model)
model.score(Xtrain, ytrain)
0.18287695496398504
Xtest = df[df.date=='2022-01'][features] ytest = df[df.date=='2022-01']["ret"] model.score(Xtest, ytest)
0.03330573059873343