Machine Learning, FoundationsLesson 56 of 92

Module 6 · Trees, ensembles, and the algorithms that win on tables

Boosting: each model fixes the last one’s mistakes

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 4 of 10 in this chapter

This chapter’s goalChoose between a linear model, a random forest and a gradient boosting library for a given tabular problem and defend the choice, tune the four hyperparameters that actually matter in each, and explain why impurity-based feature importance is biased and what permutation importance and SHAP replace it with.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:59Not available
Full audiobookNot availableNot available
Validation loss against number of trees, two learning rates00.50101000TreesValidation log loss—— Learning rate 1.0– – Learning rate 0.05At a rate of 1.0 the model has fitted the residual noise by tree fifty and gets worse from there. At0.05 it approaches a lower floor slowly and holds it, because each tree can only make a small claim.Halve the rate, double the trees, and let early stopping pick the count.
At a rate of 1.0 the model has fitted the residual noise by tree fifty and gets worse from there. At 0.05 it approaches a lower floor slowly and holds it, because each tree can only make a small claim. Halve the rate, double the trees, and let early stopping pick the count.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The opposite construction

A forest fits many strong models in parallel and averages away their variance. Boosting fits many weak models in sequence, each one correcting what the previous ones got wrong, and reduces bias.

The trees in a boosted model are deliberately shallow: depth 3 to 6, sometimes a single split. On its own such a tree is barely better than guessing. Several hundred of them, each addressing the remaining error, is usually the strongest thing you can fit to a table.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Boosting: each model fixes the last one’s mistakes’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/boosting-mechanics (Accessed: 29 November 2026).