MAIF / shapash

🔅 Shapash: User-friendly Explainability and Interpretability to Develop Reliable and Transparent Machine Learning Models
https://maif.github.io/shapash/
Apache License 2.0
2.73k stars 335 forks source link

Question - Plot headings #324

Open SSMK-wq opened 2 years ago

SSMK-wq commented 2 years ago

I was going through the documentation and came across the below plot and its header

image

Here, for the local explanation id = 3, we see that SHAPASH graph plots as header as

Response: 1 - Proba = 0.2521

This is confusing. Does it mean the model predicted probability for this record was 0.7479 (obtained by subtracting 1-0.2521)?

Or is the model predicted probability of this class was 0.2521?

Which is the probability that was predicted by the model that we build?

and what does SHAPASH do here/why does it subtract from 1?

yg79 commented 2 years ago

Hello, Response 1 means that the local plot focuses on value 1 of the target. If you want to see the proba and explanability associated to value 0 you can use the parameter label=0 of local plot (https://shapash.readthedocs.io/en/latest/autodocs/shapash.explainer.html)

predicted Proba of the Response of 1 is 0.2521