-
Notifications
You must be signed in to change notification settings - Fork 12
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: Index larger than maximal for convex hull plots #77
Comments
It's hard to say without a reproducible example. To narrow down the issue, can you make sure that |
On second thought, are you using a sparse matrix from the |
Yes, I am using a sparse matrix from
|
It should work with any combination of training: https://github.com/bgreenwell/pdp/blob/master/slowtests/slowtests-xgboost.R. I'll see if I can find where the true issue is. The error you are getting is thrown from the |
The sparse matrix works with I now created the |
As long as you have a reasonable workaround for now! I'll dig into this issue when I find some free time soon and see if I can't figure out the exact issue (might just be a subsetting issue). Will get back to you soon! |
I have an object (ans1X) trained in xgboost. The dataset has 82,527 rows. I am able to use
partial
to make a partial dependency plot with one variable. However, when I try and make a convex hull plot (with two variables) using the below code:p1=partial(ans1X, pred.var = c("fix_eff7", "fix_eff2"), plot = TRUE, chull = TRUE,train=train)
I get the following error:
Error in intI(i, n = x@Dim[1], dn[[1]], give.dn = FALSE) : index larger than maximal 82527
Could you please help out?
The text was updated successfully, but these errors were encountered: