liveBook · Manning

Local explanation

A local explanation describes how or why a model produced a particular prediction or decision for an individual input.

How 2 Manning books explain it

Ensemble Methods for Machine Learning

Local explainability, or local interpretability, is the ability to explain why a model produced a particular prediction for an individual input.

How it is used
Supports trust, action, debugging, failure analysis, and bias discovery by accounting for individual predictions.
How deep it goes
Contrasts local and global scope, then details LIME surrogates, SHAP attribution, and direct EBM component contributions.
Examples
Uses diabetes diagnosis, a four-person prize coalition, and Bank Marketing test example 3104.
What you can do after
Apply it via LIME, SHAP, or InterpretML to inspect feature and interaction contributions for an individual prediction.

Read how Ensemble Methods for Machine Learning explains local explanation →

Outlier Detection in Python

A local explanation describes why a model produced a particular prediction or score for an individual observation.

How it is used
Explains why an individual record received its outlier score, supporting interpretation of otherwise difficult-to-understand detectors.
How deep it goes
Describes feature spaces, distributions, and contributing subspaces, while stopping short of recovering the detector’s exact reasoning.
Examples
Uses an abalone dataset, two-dimensional KNN models, and a top-scored record repeatedly associated with the Height feature.
What you can do after
Diagnose individual outlier scores by identifying feature pairs and spaces most responsible for a record’s anomaly.

Read how Outlier Detection in Python explains local explanation →

Also covered in

What to know first

Related concepts

Questions about local explanation

What is local explanation?

A local explanation describes how or why a model produced a particular prediction or decision for an individual input.

Which Manning books explain local explanation?

Ensemble Methods for Machine Learning and Outlier Detection in Python.

What should I know before learning local explanation?

Manning books that teach local explanation usually introduce decision tree and generation first.

What is the difference between local explanation and global explanation?

A local explanation describes how or why a model produced a particular prediction or decision for an individual input. A global explanation describes a model’s overall behavior or decision patterns across a range of inputs rather than explaining a single prediction.

What kinds of local explanation are there?

Kinds of local explanation include saliency map.

What is local explanation a kind of?

Local explanation is a kind of explainable output. An explainable output is a result accompanied by an intelligible account of the factors, reasoning, or decision logic underlying it.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.