Explainable AI: SHAP and LIME, why a model predicted that

11 steps · about 6 h 22 min · Intermediate

  1. What is SHAP? Explainable AI (XAI) for Machine Learning (video, YouTube, 15 min)

    A plain-language overview of what explainability is and where Shapley values fit, before you touch any code.

  2. Introduction to SHapley Additive exPlanations (SHAP) — XAI Tutorials (article, XAI Tutorials, 25 min)

    Sets out the ideas behind SHAP (baseline, missing features, the different explainers) so the plots make sense later.

  3. How SHAP value is calculated? It is not hard! (simple example) (video, YouTube, 12 min)

    Works through a three-feature Shapley calculation by hand, which makes the maths concrete.

  4. LIME - Local Interpretable Model-Agnostic Explanations (blog, Marco Tulio Ribeiro (LIME author), 15 min)

    The creator explains the local surrogate idea, the second main method, in accessible terms.

  5. marcotcr/lime: Explaining the predictions of any machine learning classifier (repo, GitHub, 30 min)

    The official LIME package. Install it and follow the linked tutorials for tabular, text and image data.

  6. An introduction to explainable AI with Shapley values (doc, SHAP documentation, 45 min)

    The official hands-on notebook. It explains progressively more complex models and teaches you to read the plots.

  7. SHAP_tutorial: using the SHAP library to explain feature importance with Shapley values (tutorial, GitHub (helenaEH), 30 min)

    A short worked tree-model example with force plots that you can adapt to your own data.

  8. shap.Explainer — SHAP latest documentation (reference, SHAP documentation, 15 min)

    Explains how maskers, background data and link functions change what a SHAP value means.

  9. Explainable AI (XAI) Methods: SHAP and LIME Explained (article, Artificial Intelligence +, 15 min)

    Compares SHAP and LIME on the same row, and shows how to check whether they agree.

  10. "Why Should I Trust You?": Explaining the Predictions of Any Classifier (doc, arXiv (Ribeiro, Singh, Guestrin), 1 h)

    The original LIME paper. By now you can read its method and its trust experiments.

  11. Interpretable Machine Learning (doc, Christoph Molnar, 2 h)

    A free book that covers LIME, Shapley values and SHAP critically, plus the wider interpretability toolbox and its limits.