oegedijk/explainerdashboard

Change from logodds to probability the shap values

Guidosalimbeni opened this issue · 1 comments

Shap library in python comes with a link parameter that Using “logit” will change log-odds numbers into probabilities. This is useful as the shape values in the plot would be easier to interpret in binary classification. Is there a way to set the same behaviour in explainerdashboard?

Hi @Guidosalimbeni , yes you can do this with the explainer parameter model_output

from the docstring:

model_output (str): model_output of shap values, either 'raw', 
        'logodds' or 'probability'. Defaults to 'raw' for regression and
        'probability' for classification.