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

Question about the ood datapoints #17

Open
688spiderbin opened this issue Oct 10, 2024 · 0 comments
Open

Question about the ood datapoints #17

688spiderbin opened this issue Oct 10, 2024 · 0 comments

Comments

@688spiderbin
Copy link

Hi, thank for your great work and contributions to point out that kernel shap may be not robust. I have a little question about where can I found the perturbation method source code done by kernel shap?
I notice you put the real xtrain ('background_distribution' here) to the KernelExplainer. To my knowledge, this is all the real data point and then you feed the RF classifier to class ood/iid, my question is where the perturbation datapoint come from?
background_distribution = shap.kmeans(xtrain, 10)
adv_kerenel_explainer = shap.KernelExplainer(adv_shap.predict, background_distribution)
I hope my question is make sense to you !
Thanks !

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

1 participant