Concept · Builds on AIF-C01
Explaining model outputs
Show which features drove one prediction or the whole model: SHAP, partial dependence, built-in importance.
You know from AI Practitioner
- Clarify feature attributions say how much each input pushed one prediction up or down.
- The method is based on SHAP.
- 1Pick the prediction to explain.
- 2Choose a baseline example to compare with.
- 3SHAP scores each feature, positive or negative.
SHAP
- Scope
- Local and global
- How it works
- Signed score per feature
Partial dependence
- Scope
- Global
- How it works
- Effect of one feature
Built-in importance
- Scope
- Global
- How it works
- Score from the algorithm
Interpretable model
- Scope
- Local and global
- How it works
- The model is the explanation
| Method | Scope | How it works |
|---|---|---|
| SHAP | Local and global | Signed score per feature |
| Partial dependence | Global | Effect of one feature |
| Built-in importance | Global | Score from the algorithm |
| Interpretable model | Local and global | The model is the explanation |
1 / 2
SHAP
- Scope
- Local and global
- How it works
- Signed score per feature
Partial dependence
- Scope
- Global
- How it works
- Effect of one feature
Built-in importance
- Scope
- Global
- How it works
- Score from the algorithm
| Method | Scope | How it works |
|---|---|---|
| SHAP | Local and global | Signed score per feature |
| Partial dependence | Global | Effect of one feature |
| Built-in importance | Global | Score from the algorithm |
2 / 2
Interpretable model
- Scope
- Local and global
- How it works
- The model is the explanation
| Method | Scope | How it works |
|---|---|---|
| Interpretable model | Local and global | The model is the explanation |
What it is
A local explanation covers one prediction: why was this loan refused? A global explanation covers the whole model: which features matter most? Customers and regulators usually ask the local question. Model builders usually start with the global one.
What it is
SHAP (Shapley Additive exPlanations) works with any model. It treats a prediction as a game and the features as players. A feature score is its average contribution over combinations of features, so correlated features are handled fairly. Scores are signed (positive pushes the prediction up) and add up to the prediction minus the prediction for a baseline, an average example you choose. A different baseline gives different scores. Kernel SHAP approximates the 2 to the power d combinations from samples. Average the absolute local scores over many rows for a global importance.
What it is
A partial dependence plot (PDP) is global. It shows how the prediction changes as one feature varies while the others are averaged out, so you see the direction and shape of the effect. It does not explain one prediction. Tree models such as XGBoost report a built-in importance per feature, and linear models have coefficients. Both are global and tied to one algorithm. Interpretable-by-design models, such as linear models and small trees, explain themselves, at some cost in accuracy. Use them when rules demand a reason for each decision.
What it is
In Clarify an explainability job (a processing job) takes the dataset, the model and a SHAP configuration with a baseline, and writes local scores, global scores and PDPs to S3. It can also explain single requests online, and covers text (which words drove the label) and images (which parts). Feature attribution drift monitoring reuses these scores in production. Status: Clarify has been closed to new customers since July 30, 2026. Existing customers can keep using it. AWS points to the open source SHAP library with results logged to MLflow, and to Amazon Bedrock Evaluations for foundation models. Exam questions can still name Clarify.
Remember
- SHAP: signed scores that add up to the prediction minus the baseline prediction.
- PDP: the global effect of one feature. Built-in importance and coefficients: global, algorithm specific.
On the exam
- “Explain why one applicant was refused” points to a local explanation such as SHAP.
- “Show how the predicted price changes as house size grows” points to a partial dependence plot.
- “A regulator needs a reason for each decision and a simple model is acceptable” points to an interpretable-by-design model.
Do not mix it up with
In this task · 2.3
- Experiment tracking: managed MLflow
- Amazon Bedrock evaluations
- Performance baselines and drift detection
- Shadow variants and A/B tests
- Explaining model outputs
- Debugging model convergence
- Evaluating traditional ML models
- NLP and text-generation metrics
- Human evaluation and human-in-the-loop
- LLM-as-a-judge and AI output assessment
- Evaluating RAG retrieval and answers