Apex › Storage & databases

Learning from residuals (gradient boosting)

The other way to ensemble: build trees in sequence, each fit to the residual errors the model still makes. Start with the mean, fit a shallow tree to the leftover residuals, add a shrunk copy, and repeat — every round targets exactly what’s still wrong. For squared loss the residual is the negative gradient, so each tree is a gradient-descent step in function space. Verified in node: training MSE falls monotonically 0.0500→0.0002 (305× over 40 rounds). The sequential counterpart to a forest’s parallel bagging; slide the rounds.

More in Storage & databases