getFeatureImportance
extracts those values from trained models.
See below for a list of supported learners. auc=TRUE
(only for binary classification),
area under the curve is used as measure. The algorithm used for the survival
learner is 'extremely slow and experimental; use at your own risk'.
See varimp for details and further parameters.
type = 2
(the default) the 'MeanDecreaseGini' is measured,
which is based on the Gini impurity index used for the calculation of the nodes.
Alternatively, you can set type
to 1, then the measure is the mean
decrease in accuracy calculated on OOB data. Note, that in this case
the learner's parameter importance
needs to be set to be able to compute
feature importance values.
See importance for details.
importance
, to be able to compute feature importance measures.
See importance and
ranger for details.
getFeatureImportance(object, ...)
WrappedModel
]
Wrapped model, result of train
.FeatureImportance
] An object containing a data.frame
of the variable importances and further information.