| get_varimp | R Documentation |
The variable importance measures a fitted model reports, or the mean
absolute contribution of each predictor in a SHAP explanation.
get_varimp(x, ...)
x |
|
... |
Additional arguments passed to methods. |
A VariableImportance object holds its measures by name in @measures.
Each measure states what it quantifies (@kind, for example split gain,
permutation, or coefficient), the cases it was computed on
(@computed_on), whether its values can be negative (@signed) or depend
on the units of the predictors (@scale_dependent), how it ranks
predictors (@direction), and what its values are for this model
(@description); @values holds the value for each predictor.
varimp_table combines the measures into one data.frame.
VariableImportance object, a list of them (one per resample) for
a SupervisedRes, or NULL when the algorithm reports no importance.
EDG
mod <- train(iris, hyperparameters = setup_LightRF())
get_varimp(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.