Internal replacement for vip::vi(..., method = "permute") that
supports the "rsq" and "roc_auc" metrics used in radiant.model.
No external package dependencies are required.
vi_radiant(
object,
target,
method = "permute",
metric,
pred_wrapper,
train,
event_level = NULL,
nsim = 3L,
...
)A data frame with columns Variable and Importance
(and class c("vi","data.frame")).
A fitted model object.
Character string naming the response column in train.
Must be "permute" (only supported method).
Character string; either "rsq" or "roc_auc".
A function with arguments object and newdata
that returns a numeric prediction vector.
Data frame containing both features and the target column.
"first" (default) or "second"; which factor
level of target is the positive class (used for "roc_auc").
Number of permutation replications per feature; results are averaged across replications. Default is 3.
Ignored.