-
Notifications
You must be signed in to change notification settings - Fork 109
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
Error in explain function with H2O GBM regression model - Error in if (r2 > max) { : missing value where TRUE/FALSE needed #47
Comments
Can i get you to try it with the latest version of lime from GitHub? |
The previous error message is gone but now there is a new one explanation <- explain(as.data.frame(test[1:5,]), explainer, n_features = 5)
#> Error in glmnet(x[, c(features, j), drop = FALSE], y, weights = weights, : x should be a matrix with 2 or more columns |
Ok, so the reason for that error is quite specific to your dataset. Basically you have a single column ( Based on the name and the values I would throw that column out unless you have very good reasons to keep it. If you really need it, then either play with the |
I've added a meaningful error message for cases like yours were the similarity of the permutations to the original observation is zero and a local model cannot be created |
Hi, can you please check again into issue #46 ?
Just for curiosity I tried droping the
month.lbl
variable and now I dont get the warning message but stil have the same error message even though my training data covers the full feature space.The text was updated successfully, but these errors were encountered: