-
Notifications
You must be signed in to change notification settings - Fork 15
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
local_attributions fails for classification: incorrect number of subscripts on matrix #69
Comments
Hi @agilebean! Can you provide the model please? It might be the problem with
|
Ha, crossing thoughts - I just included the model in the description! |
I just verified I had |
I just ran it again with the same error. However, when I run the same analysis - but with the model trained as regression instead of classification, it WORKS! Double checked just now. |
@hbaniecki Did you try it with the model I specified in the description above? |
Yes, it is a weird problem with iBreakDown/R/local_attributions.R Lines 252 to 255 in 43b6e0b
While running your example, there is a red warning (in the explainer output) saying that
|
Great analysis. |
Thanks, there was a problem in the In the meantime you can use user defined
|
this is now fixed with the latest DALEX starting with 0.9.8 as in |
For classification, local_attributions() returns the error:
One hint for the root cause might be the warning message thrown by the explainer - it tries to calculate numeric residuals which of course it cannot do:
Reproducible example:
The text was updated successfully, but these errors were encountered: