Day 220 — Gradient boosting, and the interactions it is looking for
Sunday, 14 March 2027 · Week 32 of 52 · Machine learning · Study day · 60 min
The default model of the field, and the honest question is not whether it fits better in sample but whether the interactions it finds are real at this signal-to-noise ratio.
What you should be able to do tonight
- Tune a gradient boosting model under the frozen protocol and report its out-of-sample performance with an interval.
- Say what functional form a tree ensemble can represent that a linear model cannot, and test whether that form is present in your data.
Tasks 60 min
35 min Tune it properly with the purged splitter: depth, learning rate, subsample fraction and the number of rounds chosen by early stopping inside each fold. Report out-of-sample R-squared and information ratio with intervals, next to the linear baseline.
25 min Test for the thing it is supposed to find: add the two-way interactions the tree model implies as explicit features to the linear model and see whether the linear model closes the gap. If it does, the boosting gain is a functional form you can name; if it does not, the gain is either nonlinearity you have not characterised or overfitting.
Resources
Deliverable
A tuned boosting model with intervals, plus the interaction test showing whether a linear model with named interactions closes the gap.
Checkpoint
Your boosting model beats ridge by 15 percent in cross-validated R-squared. Give three explanations and say how you would distinguish them.
Prepare for tomorrow
Ten minutes tonight so Day 221, Monday, 15 March 2027 starts clean. This is what the evening email sends you.
Fit a random forest on the same data and record its out-of-sample R-squared.
Note how it compares to boosting and to linear.
Write down which of the three you expected to win.