library(xgboost)
library(pdp)
data(ToothGrowth)
xgboost(
ToothGrowth[, c("len", "dose")],
ToothGrowth$supp,
eval_metric = c("auc", "logloss"),
eval_set = 0.2,
monitor_training = TRUE,
verbosity = 1,
nthreads = 1,
nrounds = 3
) -> mod
p1 <- pdp::partial(mod, "len")
Likey due to internal parameter change, see migration guide for latest xgboost.
Reproducible code:
Versions:
xgboost_3.1.3.1
pdp_0.8.2