For a game on the set of players, the Shapley value of player is
the only allocation that is efficient (), symmetric, zero for a player that adds nothing, and additive across games. A SHAP value is the Shapley value of feature for one prediction, with the model’s expected output when the features in are fixed at their values (Lundberg and Lee, 2017); for tree ensembles it is computed exactly and fast (TreeSHAP).
ml_importance.importances.