View source: R/surv_integrated_feature_importance.R
surv_integrated_feature_importance | R Documentation |
model_parts.R
This function is used to calculate permutational feature importance using an aggregate (for now only integral) of a time dependent metric. The result is the combined change in loss function across all time points - a single value.
surv_integrated_feature_importance(
x,
loss_function = DALEX::loss_root_mean_square,
...,
type = c("raw", "ratio", "difference"),
B = 10,
variables = NULL,
variable_groups = NULL,
N = NULL,
label = NULL
)
x |
an explainer object - model preprocessed by the |
loss_function |
a function that will be used to assess variable importance, by default |
... |
other parameters, currently ignored |
type |
a character vector, if |
B |
numeric, number of permutations to be calculated |
variables |
a character vector, names of variables to be included in the calculation |
variable_groups |
a list of character vectors of names of explanatory variables. For each vector, a single variable-importance measure is computed for the joint effect of the variables which names are provided in the vector. By default, variable_groups = NULL, in which case variable-importance measures are computed separately for all variables indicated in the variables argument |
N |
numeric, number of observations that are to be sampled from the dataset for the purpose of calculation |
label |
label of the model, if provides overrides x$label |
Note: This function can be run within progressr::with_progress()
to display a progress bar, as the execution can take long, especially on large datasets.
A data.frame containing results of the calculation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.