liveBook · Manning

Shapley value

A Shapley value is a cooperative-game-theoretic attribution that assigns a participant its average marginal contribution across all possible coalitions.

How 2 Manning books explain it

Ensemble Methods for Machine Learning

A Shapley value is a cooperative-game-theoretic attribution that assigns each player its average marginal contribution across possible coalitions.

How it is used
Attributes an individual prediction’s feature importance for local explanation of black-box models.
How deep it goes
Works through coalition values and weighted marginal differences, then defers scalable computation to SHAP and TreeSHAP.
Examples
Uses a four-person prize allocation and waterfall and force plots for an XGBoost prediction.
What you can do after
Apply it via SHAP or TreeSHAP to attribute feature contributions for individual predictions.

Read how Ensemble Methods for Machine Learning explains Shapley value →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A Shapley value is a cooperative-game-theory allocation that fairly assigns each participant a contribution across all possible coalitions.

How it is used
Explains how individual machine-learning features contribute to specific predictions and supports model interpretability.
How deep it goes
Defines coalition-based contribution, additive attribution, and resampling approximation without deriving the underlying mathematics.
Examples
Uses XGBoost predictions, SHAP importance and violin plots, and JSON records pairing transformed features with contributions.
What you can do after
Diagnose model behavior with SHAP and TreeSHAP outputs, visualizations, and per-instance feature-contribution explanations.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains Shapley value →

Related concepts

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.