5

I'm looking on the explanation of shap from: datacamp I looked on the summary plot: do when looking on: enter image description here

We have 2 classes, then I assume that the effect of a feature of one class is the opposite effect for the other class.

But according to the plot, the mean(|SHAP value|) of class1 (red color) is X2 than the mean(|SHAP value|) of class0 (blue color).

The mean(|SHAP value|) of Status feature of class1 is 0.16 , and the mean(|SHAP value|) of Status feature of class0 is 0.08.

why the mean ABS of both of the classes (for Status) feature isn't 0.08 ? what am I missing ?

Ben Reiniger
  • 12,855
  • 3
  • 20
  • 63
user3668129
  • 769
  • 4
  • 15

1 Answers1

8

They are equal. The chart is a stacked bar chart: the red bars don't start at zero, but at the end of the blue bars.

Ben Reiniger
  • 12,855
  • 3
  • 20
  • 63