Advanced level · Module 4 of 8 · 20 guided hours
Explainable AI Techniques and Interpretability
Advanced explanation methods (SHAP for tree models, dependence and interaction analysis, permutation importance pitfalls and counterfactual explanations) and how to evaluate whether an explanation is faithful and useful.
Learning objectives
- Apply SHAP to tree-based models and interpret global and local outputs
- Recognise pitfalls in feature importance and explanation methods
- Produce counterfactual explanations and evaluate explanation quality
Topics
- TreeExplainer and global SHAP summaries
- dependence and interactions
- correlated features and importance pitfalls
- counterfactual explanations
- explanation faithfulness and stability
- explanations for affected people
Lessons
-
Lesson 1 SHAP for Tree Models
Learners use shap.TreeExplainer on a gradient-boosted or random forest model and read global summaries, dependence plots and individual explanations.
TreeExplainerbeeswarm plotmean absolute SHAPdependence (scatter) plotbackground data
-
Lesson 2 Pitfalls in Feature Importance
Learners investigate how correlated features, data leakage and impurity-based importances can mislead, and how to cross-check explanations.
impurity-based importancecorrelated featuresleakageexplanation disagreementcross-checking
-
Lesson 3 Counterfactual Explanations
Learners create counterfactual explanations ('what would need to change for a different outcome?') and judge whether the suggested changes are actionable and fair.
counterfactual explanationactionabilityimmutable featuresplausibilityrecourse
-
Lesson 4 Evaluating and Communicating Explanations
Learners test explanations for faithfulness and stability and design explanation formats for officers, auditors and affected people.
faithfulnessstabilityexplanation formatuser testingover-trust
Practical activity
Complete the explainability section of the capstone: a SHAP global pack, importance cross-check, counterfactuals and tested explanation formats for three audiences.
Expected outcomes
- Advanced, critical use of explanation methods
- Audience-appropriate explanations
Assessment
Notebook and explanation pack review (70%) and user-testing notes (30%).
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.