Skip to content

pdp partials fail with latest xgboost version #137

@Martin-Jung

Description

@Martin-Jung

Likey due to internal parameter change, see migration guide for latest xgboost.

Reproducible code:

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")

Error in match.call(f, call = mcall) : invalid 'call' argument

Versions:
xgboost_3.1.3.1
pdp_0.8.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions