Tree Ensembles & Gradient Boosting
Train, tune and interpret decision trees, random forests and gradient-boosted trees, the default strong baseline for tabular data.
4 objectives 6 steps about 125 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Explain how a decision tree chooses splits and why bagging (random forests) mainly reduces variance while boosting mainly reduces bias.
- Train and tune a gradient-boosted model (scikit-learn HistGradientBoosting, XGBoost or LightGBM) with early stopping and a cross-validated search over its key hyperparameters.
- Compare a tree ensemble with a linear baseline on score, training and inference time and model size, and justify the choice.
- Interpret an ensemble with permutation importance and partial dependence, and explain why impurity-based importance can mislead.
Lesson plan
6 steps, about 125 min · 5 of 5 lessons available so far
- How a Tree Splits, and Why One Tree Overfits Concept · 20 min
- Bagging vs Boosting: Two Ways to Combine Trees Concept · 20 min
- Lab: Tuning a Gradient-Boosted Model with Early Stopping Lab · 30 min
- Worked Example: Is the Ensemble Worth Its Cost? Worked example · 20 min
- Reading an Ensemble: Permutation Importance and Partial Dependence Concept · 20 min
- Check: Trees, Forests and Boosting Knowledge check · 8 questions
Practise it
On a tabular dataset, train a regularized linear model, a random forest and a tuned gradient-boosted model on the same cross-validation folds; report scores with fold spread, fit and predict times and model size, and compare impurity-based with permutation importance for the top five features.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.