internalsGet Pro

Module 07 · Lesson 7 of 12Pro

Gradient boosting: XGBoost, LightGBM and CatBoost

Level
Intermediate
Topic
Classical ML: regression and classification
Reading time
18 min

When you finish this page you can

  1. Explain how each new tree in a boosted model is trained on the gradient of the loss, and why that is the residual for squared error.
  2. Trade the learning rate against the number of trees, and let early stopping on a validation set pick the count.
  3. Train scikit-learn’s HistGradientBoostingClassifier on a churn table and read how many trees it kept.
  4. Choose between scikit-learn, XGBoost, LightGBM and CatBoost from how each grows trees and handles categories.
  1. Gradient descent: walking downhill to a better model14 min
  2. Regularization: L1, L2 and early stopping17 min
  3. Train, validation and test sets13 min
  4. Decision trees: learning rules by splitting data14 min
  5. Random forests: many trees voting together17 min

Newcomers leave, and the list misses them

is our example online store. Every Monday, Joseph’s growth team sends ₹100 vouchers to the 20,000 customers most likely to : to stop buying. Farah, an ML engineer, builds the model that ranks them, on a notebook sample of 200,000 customers.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan