Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 05 / Topic 6 of 7

Gradient boosting

Boosting also builds many trees — but sequentially, each new tree fitted to the previous ensemble's errors. HistGradientBoostingClassifier is scikit-learn's fast implementation and the strongest default on tabular data in most industry benchmarks.

HistGradientBoostingClassifier(random_state=42)

It handles missing values natively and needs no scaling. If you only try two models on a table, make them logistic regression (the honest baseline) and gradient boosting (the likely winner).

Done here? The practice set for Part 5 — 4 exercises with solutions — is on the part page.

Search the guide