Intermediate level · Module 6 of 7 · 13 guided hours
Introduction to Explainable AI
Why explanations matter, the difference between global and local explanations, and hands-on use of coefficients, permutation importance and SHAP values to explain a student-performance model.
Learning objectives
- Distinguish global and local explanations and their audiences
- Compute permutation importance with scikit-learn
- Produce and interpret a SHAP explanation for one prediction
Topics
- interpretable models vs post-hoc explanations
- global and local explanations
- coefficients and permutation importance
- SHAP values
- explanations for different audiences
- limits of explanations
Lessons
-
Lesson 1 Why and for Whom We Explain
Learners identify who needs an explanation (developers, managers, auditors and affected people) and what kind of explanation helps each of them.
global explanationlocal explanationinterpretable modelpost-hoc explanationaudience
-
Lesson 2 Global Explanations: Coefficients and Permutation Importance
Learners read logistic regression coefficients carefully and compute permutation importance with scikit-learn to see which inputs the model relies on.
coefficientsfeature scalingpermutation_importancetest-set importancecorrelated features
-
Lesson 3 Local Explanations with SHAP
Learners use SHAP to explain an individual student's prediction as contributions from each feature, read a waterfall plot and translate it into a plain-language explanation.
Shapley valuesbase valuefeature contributionLinearExplainer / Explainerwaterfall plot
Practical activity
Add a global and local explanation section to the level project, with permutation importance, three SHAP explanations and plain-language versions for a parent.
Expected outcomes
- Ability to explain a model globally and locally
- Plain-language explanations for affected people
Assessment
Notebook review of the explanation section (60%) and the plain-language explanations (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.