Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Interpretable Machine Learning: Trees, Random Forests & GBMs
New
Rating: 4.0 out of 5(1 rating)
31 students

Interpretable Machine Learning: Trees, Random Forests & GBMs

Master feature importance in XGBoost, LightGBM and scikit-learn to explain what drives your model and each prediction
Created bySoledad Galli
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Explain which features drive the predictions of decision trees, random forests and gradient boosting machines, and how their importance is calculated
  • Explain why your model made a specific prediction by breaking it down into each feature's contribution, for single trees and entire ensembles
  • Compare and interpret the feature importance of scikit-learn, XGBoost and LightGBM models, and know what gain, split count and cover really measure
  • Spot when correlated features or unstable trees make your explanations misleading, and know how far you can trust tree-based feature importance

Course content

4 sections • 33 lectures • 2h 49m total length
  • Decision trees5:58
  • Decision tree induction7:03
  • Feature importance13:23
  • Global interpretation - demo10:43
  • Local interpretation7:35
  • Local interpretation - demo regression7:13
  • Local interpretation - classification demo7:22
  • Considerations6:01
  • Resources0:15
  • Course materials0:29

Requirements

  • You can write basic Python, work with data in pandas and train models with scikit-learn

Description

Welcome to Interpretable Machine Learning: Trees, Random Forests & GBMs, a focused, practical course on explaining how tree-based models make their predictions.

Random forests, XGBoost and LightGBM are among the most powerful and widely used models for tabular data. Yet many people rely on their feature importance plots without knowing how they're calculated, what they actually measure, or how to explain a single prediction to someone who asks why the model decided what it did.

We'll start with decision trees. You'll learn how trees choose their splits, how feature importance comes from those splits, and how to break any prediction down into the contribution of each feature.

Next, we'll move to random forests and bagging. You'll learn how many models are combined into one, and how to explain the whole ensemble, both globally and for individual predictions, by building on what you know about each tree.

Then we'll tackle gradient boosting machines. You'll learn how boosting builds trees one after another to correct earlier mistakes, how scikit-learn, XGBoost and LightGBM measure feature importance, and how to trace each feature's contribution to a single prediction across hundreds of trees.


Through clear explanations and Python demonstrations, you'll learn to:


  • Explain which features drive the predictions of decision trees, random forests and gradient boosting machines

  • Understand exactly how feature importance is calculated, rather than trusting the plot blindly

  • Explain why the model made a specific prediction for an individual customer, patient or claim

  • Break down any prediction into the baseline plus each feature's contribution, for single trees and entire ensembles

  • Understand how bagging and boosting combine models, so you can explain the ensemble from its trees

  • Compare feature importance in scikit-learn, XGBoost and LightGBM, and know what gain, split count and cover really measure

  • Explain bagged models built from other algorithms, such as linear models

  • Recognize when correlated features and unstable trees make your explanations misleading

  • Interpret tree-based models in Python with scikit-learn, XGBoost, LightGBM and eli5

This course is for data scientists, analysts, machine learning practitioners and technical professionals who need to explain their models' results with confidence, especially in fields like finance, insurance and healthcare, where every prediction has to be justified.

Every concept comes with Python examples that connect the theory to real model interpretation.

A feature importance plot is easy to make, but it's just as easy to misread. Correlated features, unstable trees and different importance metrics can all lead to very different conclusions about the same model.

By the end of the course, you'll be able to explain what drives your tree-based models and each of their predictions, and you'll know when those explanations can be trusted and when they can't.

Enroll now and start explaining your tree-based models with confidence!

Who this course is for:

  • Data scientists, analysts and machine learning engineers who use random forests, XGBoost or LightGBM, and need to explain what drives their predictions, and why the model made a specific prediction
  • Professionals in finance, insurance, healthcare and other regulated fields, where tree-based models are common and every prediction has to be justified to managers, clients or regulators
  • Practitioners who rely on feature importance plots and want to understand how they're calculated, what they really measure, and when they can be misleading