View source: R/variable_importance.R
variable_importance | R Documentation |
Computation of variable importance from a bag of models. Variable importance can
be computed either by dropping variables or through permutation of the variables values
(parameter type
), typically by evaluating the effects on the model evaluation metric
in the validation set(s). If type = "drop"
, each variable is dropped from the model
at a time and the variation in model evaluation metric is computed. If type = "permutation"
,
The observations of each variable are permutated and the variation in model evaluation
metric is computed.
variable_importance(
x,
data,
samples = NULL,
type = c("drop", "permutation")[1],
colH0 = NULL,
variable_block = NULL,
n_permutations = 100,
order = c("desc", "asc", FALSE)[1],
metric = NULL,
plot = FALSE,
ss = 1,
remove_threshold = 0
)
x |
|
data |
|
samples |
|
type |
|
colH0 |
|
n_permutations |
|
order |
|
plot |
|
remove_threshold |
|
For plotting variable importance, see plot_importance()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.