SHAP

SHAP (SHapley Additive exPlanations) is a unified, game-theoretic framework for local feature attribution. Treating a model's input features as players in a coalition game, SHAP assigns each feature its Shapley value — the average marginal contribution of that feature to the prediction across all possible feature subsets. Shapley values are the unique attributions satisfying local accuracy, missingness, and consistency, so the prediction decomposes additively into a baseline plus one Shapley value per feature, giving a per-prediction explanation that is theoretically grounded and model-agnostic.

zjunlp Updated 1.5k repo stars

File contents

zjunlp/mechanist commit a4fa85c88f

Frequently asked questions

npx get-skill add zjunlp/shap