All lessons in Machine Learning Engineering: Reliable Predictive Models

Gradient Boosting and Shrinkage

Trace residual fitting, learning rate, and validation-based early stopping.

30 minutes · Members lesson · preview

What you will learn

  • Trace one boosting round by hand, from pseudo-residuals to leaf values to the shrunken update of the running prediction.
  • Explain how the learning rate and the number of rounds trade off, and why a smaller learning rate usually needs more trees.
  • Choose a stopping round from a validation curve and state why that validation score is no longer a clean estimate of future performance.

A random forest builds many deep trees independently and averages them to reduce variance. Gradient boosting does something almost opposite: it builds small trees one after another, and each new tree is fitted to whatever the current ensemble still gets wrong. At the parcel carrier this is the difference between asking a hundred dispatchers for independent guesses and asking one dispatcher to revise a single forecast a hundred times, each time looking only at the residual error of the previous version. The revisions are deliberately small, which is where the word shrinkage comes from.

Choose another lesson