Skip to content

Model Interpretability and Explainability

For people

Why understanding model predictions matters, and practical techniques: coefficients, feature importance, SHAP and partial dependence.

Editorial team 2 min read

Share X LinkedIn Reddit Bluesky Email

A prediction you can't explain is hard to trust, debug or defend. Interpretability tools help you understand what a model has learned.

Why It Matters

  • Debugging: spotting leakage or nonsensical patterns.
  • Trust: helping users decide when to rely on predictions.
  • Compliance: some decisions, such as credit, require reasons.
  • Fairness: checking whether sensitive attributes or proxies drive outcomes.

Inherently Interpretable Models

Linear and logistic regression, shallow decision trees and rule lists can be read directly. When the accuracy cost is small, prefer them.

Global Explanations

  • Permutation importance: shuffle one feature at a time on held-out data and measure how much performance drops.
  • Partial dependence plots: show how predictions change, on average, as one feature varies.

Local Explanations

  • SHAP values attribute a single prediction to each feature, based on cooperative game theory. They add up to the difference between the prediction and the average prediction.
  • LIME fits a simple model around one prediction to approximate it locally.

Cautions

  • Explanations describe the model, not necessarily cause and effect in the real world.
  • Correlated features can split or swap importance in misleading ways.
  • Different methods can disagree; use more than one.

For Deep Learning

Techniques such as saliency maps and attention visualisation exist, but interpreting large neural networks remains an open research area.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 25 Sep 2026 For people

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 24 Sep 2026 For people

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 23 Sep 2026 For people

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 22 Sep 2026 For people

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in