skgrf icon indicating copy to clipboard operation
skgrf copied to clipboard

explainer.shap_values crashes kernel

Open kochbj opened this issue 2 years ago • 1 comments

Hi,

Amazing package! I was wondering if you have any insight into why calling explainer.shap_values consistently crashes my python kernel. I don't think it's a memory issue.

Thanks for your time; really appreciate it.

-Bernie

kochbj avatar Jul 09 '22 17:07 kochbj

Hard to say without having more details.

I took a look at the shap tests here and noticed that when calling shap_values, check_additivity=False is passed. IIRC this was necessary otherwise it would crash, and I wasn't able to figure out why. Try including this argument.

crflynn avatar Jul 10 '22 01:07 crflynn