The Art of Gradient Boosting

Trees All the Way Down

Gradient boosting models are the workhorses of the predictive modeling world. They are the go-to first choice for regression and classification problems on tabular data. That’s because they are accurate, reliable, easy to use, cheap to train, fast to predict, and generally hard to screw up. They can handle data that’s messy, missing, high-dimensional, non-linear, full of interactions, and of mixed data types without being fussy about it. Even in a world with deep nets and generative AI, these algorithms still easily earn their keep. If you are a data science practicioner or researcher, It is therefore worth developing a deep understanding of how these models work and how to use them effectively. This book will help you do both.


Contents

Part I — Foundations

In Part I, we develop the intuition behind the classic gradient boosting algorithms by working through the key mathematical concepts from the original gradient boosting paper and implementing the algorithms from scratch.

  1. Gradient Boosting Intuition
  2. Gradient Descent
  3. Gradient Boosting as Gradient Descent
  4. Loss Functions
  5. Multi-Class Classification

Part II — Decision Trees

In Part II, we break down the decision tree, implementing it from scratch and discussing why it works so well in ensembles.

  1. Why Boost with Decision Trees
  2. Decision Tree from Scratch

Part III — XGBoost

In Part III, we build the intuition behind XGBoost, walking through derivations of the key ideas in the paper and implementing the core statistical learning algorithm from scratch.

  1. XGBoost Explained
  2. XGBoost from Scratch

Part IV — Solving Applied Problems

In Part IV, I give you my practical techniques for solving applied machine learning problems with gradient boosting models, including regression, classification, hyperparameter tuning, and interpretability.

  1. Regression
  2. Classification
  3. Hyperparameter Tuning

What readers say

Here are some of my favorite reader comments about the material:

My gosh I am a PhD student and looking to understand the XGBoost model and I read and watched tons of material on the topic and none of it even come close to the explanation you gave here. — Nghia

Fantastic dive into XGBoost–thanks to your help, I better understand how gradient boosting works and the math behind XGBoost. For years, I read many blog posts that attempted to explain how XGBoost works, and your series on XGBoost and gradient boosting are the best ones I have encountered. Much appreciated   — Alex

I love you, awesome guide!   — Anonymous