Brandon Greenwell
Brandon Greenwell
Thanks @allicamm ill try to fix this in the next release!
@allicamm Looks like the issue is in `plotPartial()` (which relies on lattice graphics and is the default plotting engine whenever `plot = TRUE`). However, `partial()` and `autoplot()` work fine: ```r...
Need to check if `bst$params$objective` is `NULL` first.
@mcchiu do you have the code to reproduce data and type?
Thanks @mcchiu, I'll take a look. For now, `plotPartial(airTEMP, alpha = 0.1, center = TRUE)` (which uses **lattice**) seems to work fine.
Still not sure what the exact issue is, but here's a quick fix if you still want to use **ggplot2** ```r d
It's hard to say without a reproducible example. To narrow down the issue, can you make sure that `train` is a data frame in the argument `train = train`?
On second thought, are you using a sparse matrix from the `Matrix` package?
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 `Matrix`...
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...