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: Surrogate Models & LIME
New
21 students

Interpretable Machine Learning: Surrogate Models & LIME

Master explainable AI to interpret deep learning, clustering and anomaly detection models, and explain each prediction
Created bySoledad Galli
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Explain how any complex model makes its predictions by training a simple, interpretable model to mimic it, using global surrogate models
  • Explain why the model made a specific prediction for an individual customer, patient or claim, whatever the algorithm, using LIME
  • Explain predictions of models trained on tables, text and images, by understanding how LIME creates synthetic data around each observation
  • Measure how faithfully a surrogate mimics your model, so you know when you can trust its explanations and when you can't

Course content

3 sections • 20 lectures • 2h 17m total length
  • Surrogate models5:13
  • Considerations7:18
  • Course material0:29
  • Explaining kmeans with a surrogate19:11
  • Explaining anomaly detection with a surrogate16:50
  • Resources0:16

Requirements

  • You can write basic Python, work with data in pandas and train models with scikit-learn
  • You need to know how to explain interprtable models, like linear models and tree based ensembles

Description

Welcome to Interpretable Machine Learning: Surrogate Models & LIME, a focused, practical course on explaining the predictions of models that can't be interpreted by looking inside them.

Deep learning models, clustering algorithms and anomaly detection methods like one-class SVMs and isolation forests are powerful, but they don't come with coefficients or feature importance to explain their decisions. Surrogate models and LIME solve this by training a simple, interpretable model to mimic the complex one.

We'll start with global surrogate models. You'll learn how to train an interpretable model, like a linear model or a decision tree, to mimic the predictions of a complex one, how to measure how faithfully it does so, and when surrogates are worth using, for example to explain clustering or anomaly detection models.

Next, we'll move to LIME, which explains one prediction at a time. You'll learn why a simple model can approximate a complex one well in the neighbourhood of a single observation, and how LIME uses this to explain why the model made a specific prediction.

Then we'll open up how LIME works. You'll learn how it creates synthetic data around the observation for tables, text and images, how it decides which synthetic points are close enough to matter, and how it trains and interprets the local model.

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


  • Explain how any complex model makes its predictions by training a simple, interpretable model to mimic it

  • Measure how faithfully a surrogate mimics your model, and choose the right metric to do so

  • Explain what defines each cluster, or why an observation was flagged as an anomaly

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

  • Understand step by step how LIME creates synthetic data, weights it and trains the local model

  • Explain the predictions of models trained on tabular data, text and images

  • Recognize how LIME's settings, like sampling and kernel width, change the explanations

  • Spot explanations that are unstable, unfaithful to the model, or easy to manipulate

  • Apply surrogate models and LIME in Python

This course is for data scientists, machine learning engineers and technical professionals who work with basic deep learning models, clustering or anomaly detection models, and need to explain their results with confidence.

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

By the end of the course, you'll be able to explain how to apply surrogates and LIME to explain black box models.

Enroll now and start explaining your models with confidence, however complex they are!

Who this course is for:

  • Data scientists and machine learning engineers who work with deep learning models on text, images or tabular data, and need to explain why the model made a specific prediction
  • Practitioners who work with clustering or anomaly detection models, like one-class SVMs or isolation forests, and need to explain which features define each cluster or flag an observation as an anomaly
  • Practitioners who already use LIME and want to understand how it works, how its settings shape the explanations, and when its results can be misleading