Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Machine Learning Interpretability

via Train in Data

Overview

Learn to explain interpretable and black box machine learning models with LIME, Shap, partial dependence plots, ALE plots, permutation feature importance and more, utilizing Python open source libraries..

Interpret models, build trust, and make confident decisions..

If you're disappointed for whatever reason, you'll get a full refund.

Sole is a lead data scientist, instructor, and developer of open source software. She created and maintains the Python library Feature-engine, which allows us to impute data, encode categorical variables, transform, create, and select features. Sole is also the author of the"Python Feature Engineering Cookbook," published by Packt.

Welcome to the most comprehensive online course on Interpretable Machine Learning.

In this course, you will learn methods and tools to interpret intrinsically explainable machine learning models like linear regression, decision trees, random forests and gradient boosting machines. And you will also discover methods to explain black-box algorithms, like deep neural networks, clustering methods, anomaly detection models and more.

In our Interpretable Machine Learning Course you will find detailed explanations of how the methods work, their advantages, the risks of using interpretable machine learning methods and how to implement these algorithms in Python.

Interpretability in machine learning refers to our ability to understand and explain how machine learning algorithms make predictions. It involves unraveling the inner workings of machine learning models to gain insights into their decision-making processes, or using alternative post-hoc methods to understand the output of more complex models.

Interpretable machine learning enables us to understand what are the main drivers of a model’s prediction, and also, why a model produced a particular prediction, providing transparency and accountability in AI systems.

In the context of machine learning, interpretability helps answer questions such as:

In the business context, interpreting our ML models allows us to understand if:

Interpretability has become an indispensable aspect of modern machine learning and artificial intelligence. Interpretable ML empowers organizations to deploy models they can understand and therefore trust.

Interpretations of machine learning models offer valuable insights that can be utilized in various ways. For example:

As the demand for explainable AI continues to rise across various industries, mastering interpretability techniques has become crucial for data scientists, researchers, and data professionals.

Syllabus

  •   Welcome
    • Introduction
    • Course curriculum
    • Course requirements
    • Refer a friend program
  •   Course material
    • Course material
    • Download Jupyter notebooks
    • Download presentations
    • Download datasets
    • How did you hear about us?
  •   Interpretability in Machine Learning
    • Interpretability in machine learning
    • Importance of interpretability
    • Interpretability methods
    • Global and local explanations
    • Challenges to interpretability
    • Making models more interpretable
    • How are we doing?
    • Additional reading resources
    • Quiz
  •   Linear regression
    • Linear regression
    • Linear regression model - demo
    • Interpreting the coefficients
    • Interpreting the coefficients - sklearn
    • Interpreting the coefficients- stastsmodels
    • Local explainability
    • Local explainability - demo
    • Linear model assumptions
    • Effect of multicolinearity - demo
    • Sparse models with Lasso
    • Lasso: optimizing for interpretability - demo
    • Advantages and limitations of linear models
    • How are we doing?
    • Additional reading resources
    • Quiz
    • Exercise
    • Added Treat: A Movie We Recommend 🍿
  •   Logistic regression
    • Logistic regression model
    • Fitting the model
    • Assessing the model
    • Calculating the statistics - demo
    • Logistic regression - demo
    • Assessing the coefficients
    • Assessing the coefficients - empirically
    • Assessing the coefficients - bootstrapping
    • Interpreting the coefficients
    • Global explanations - demo
    • Local explanations - demo
    • Considerations
    • Additional resources
    • Quiz
    • Exercise
    • Extra Treat: Our Reading Suggestion 📕
  •   Decision trees
    • Decision trees
    • Decision tree induction
    • Feature importance
    • Global interpretation - demo
    • Local interpretation
    • Local interpretation - demo regression
    • Local interpretation - classification demo
    • Considerations
    • How are we doing?
    • Additional resources
    • Quiz
    • More Wisdom: Our Chosen Podcast Episode 🎧
  •   Random Forests
    • Intro to ensemble learning
    • Foundations of ensemble learning (optional)
    • Bagging
    • Random forest: global and local interpretation
    • Global interpretation - demo
    • Local interpretation - demo
    • Explaining bagged models
    • Explaining bagged models - demo
    • Additional reading resources
    • Quiz
  •   Gradient boosting machines
    • Intro to section
    • Gradient boosting machines
    • Global interpretation
    • Global interpretation - sklearn
    • Global interpretation - xgboost
    • Global interpretation - lightGBM
    • Local interpretation
    • Local interpretation - sklearn
    • Local interpretation - xgboost
    • Local interpretation - xgb - manual (optional)
    • Local interpretation - lightGBM
    • Additional reading resources
    • Quiz
    • Exercise
  •   Permutation feature importance
    • Permutation feature importance
    • Mechanism
    • Randomness
    • Permutation feature importance - demo
    • Considerations
    • Additional reading resources
    • Quiz
    • Exercise
  •   Partial dependence plots
    • Partial dependence plots
    • Mechanism
    • PDP - numerical features - demo
    • PDP - categorical features - demo
    • PDP with sklearn
    • PDP with sklearn 2
    • Interaction PDP - demo
    • PDP with PDPBox
    • PDP with Dalex
    • Considerations
    • Additional reading resources
    • Quiz
  •   Accumulated local effects plots
    • ALE plots - motivation
    • ALE plots - intuition
    • ALE plots - estimation
    • ALE plots with pandas
    • ALE plots with pyALE
    • ALE plots with DALEX
    • ALE plots with Alibi
    • ALE plots and intervals
    • Discrete and categorical variables
    • 2-D ALE plots
    • 2-D ALE plots - demo
    • Additional reading resources
    • Quiz
  •   Individual Condtional Expectation
    • Individual conditional expectation
    • ICE plots uses
    • ICE plots with sklearn
    • ICE plots with PDPBox
    • Considerations
    • ICE with Dalex
    • Additional reading resources
    • Quiz
  •   Surrogate models
    • Surrogate models
    • Considerations
    • Explaining kmeans with a surrogate
    • Explaining anomaly detection with a surrogate
    • Additional reading resources
    • Quiz
  •   LIME
    • LIME - motivation
    • LIME - mechanism
    • LIME - surrogate
    • Synthetic data for images and text
    • Synthetic tabular data
    • Distance calculation
    • Interpreting tabular data with the LIME library
    • Interpreting tabular data with LIME manually
    • Interpreting data with LIME through Dalex
    • Interpreting texts with LIME
    • Interpreting images with LIME
    • Considerations
    • Additional reading resources
    • Quiz
  •   Shapley Values and SHAP
    • SHAP - motivation
    • Game theory - intuition
    • Shapley value
    • Shapley value calculation
    • Shapley value calculation - demo
    • Sampling values (Monte Carlo)
    • Exact Explainer
    • Exact Explainer - demo
    • Permutation
    • Permutation Explainer - demo
    • Sampling Explainer
    • SHAP Kernel
    • SHAP estimation for linear models
    • SHAP for linear regression - demo
    • SHAP for logistic regression
    • SHAP for logistic regression - demo
    • SHAP for decision tree-based models
    • TreeSHAP - demo
    • Additional reading resources
    • Quiz
  •   Congratulations! You did it!
    • Congratulations
    • Next steps

Taught by

Soledad Galli

Reviews

Start your review of Machine Learning Interpretability

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.