Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NB and shapash problem #257

Open
npapan69 opened this issue Oct 29, 2021 · 2 comments
Open

NB and shapash problem #257

npapan69 opened this issue Oct 29, 2021 · 2 comments

Comments

@npapan69
Copy link

Dear All,

I have an error message when trying to compile xpl if I use a naive bayes model

model not supported by shapash, please compute contributions by yourself before using shapash

Any help with this will be appreciated

many thanks in advance

@ThomasBouche
Copy link
Collaborator

Hi,

We don't compute contributions with naive bayes model, but you can compute your own contributions (with shap.KernelExplainer for example).
Then you can compute Shapash with your contributions.
You can see this tutorial : https://github.com/MAIF/shapash/blob/master/tutorial/explainer/tuto-expl01-Shapash-Viz-using-Shap-contributions.ipynb

@npapan69
Copy link
Author

npapan69 commented Nov 5, 2021

Dear Thomas,
Many thanks for your response. Is it possible to define a probability threshold other than 0.5 on the predictor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants