How should a Tree SHAP interaction matrix be reconciled with ordinary feature SHAP values?
Classic MLLevel: IntermediateSHAP · TreeExplainer
How should a Tree SHAP interaction matrix be reconciled with ordinary feature SHAP values?
Hints
- Check row sums and the total separately.
- Off-diagonal symmetry affects bookkeeping.
Answer
Each matrix row sums to that feature contribution, and the full matrix sums to output minus baseline. Diagonal entries are main effects; symmetric off-diagonal entries allocate pair interactions, so count both halves consistently.
Source and licence: SHAP · TreeExplainer · MIT · answer: Quantoros editorial