Home > Software engineering >  Extract feature importance per class from SHAP summary plot from a multi-class problem
Extract feature importance per class from SHAP summary plot from a multi-class problem

Time:09-11

I would like to know how to generate a table for feature importance for a specific class using the shap algorithm?

enter image description here

From the plot above, how to extract the feature importance for just class 6?

I saw enter image description here

and mathematically:

np.allclose(pred, explainer.expected_value[cls]   sv[cls][idx].sum())

True
  • Related