-
Notifications
You must be signed in to change notification settings - Fork 16
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
Help: Error in yhats[[which.min(yhats_diff)]] #29
Comments
Do you have a reproducible example that produces this error? |
First of all, thanks for you answer. I suppose I can't show the data but I guarantee the variables are all right. I try this:
And then, tried construct explainer first:
Can you help me, please? Thank you, very much , |
Can you share If this is not enough then try to change thy y variable from factor to numeric |
Hi, again. Thank you very much you're trying to help me. My Session Information is:
[1] C:/Users/Margarida Ferreira/Documents/R/win-library/3.5 Change Y to numeric doesn't works because Y isn't an argument of break_down(). Should I download the code and run each code block to debug? Thanks for everything, |
Hi, again. Just to close this issue: I'm now using some code of iBreakDown. It's normal that it take too long (around 8 minutes) to calculate contributions of 13 variables and 1 row? Thanks very much. I promise I close this issue before your answer. Margarida |
Hi, iBreakDown is much faster than breakDown. Here you will find how to use the most recent version of iBreakDown |
Hi !
Can I have help to fix the error below?
Error in yhats[[which.min(yhats_diff)]] :
attempt to select less than one element in get1index
I only code this:
contribution <- broken(model = model, new_observation = df[1,features], data = train[,features])
and my model is a randomForest.
It seems that is trying to access to the zero position, and it doesn't exist.
Thanks, Margarida
The text was updated successfully, but these errors were encountered: