Description Usage Arguments Value
View source: R/crossvalidate.R
Given a classifier output from 'crossvalidate', return feature importances as either a plot or a data frame. Feature importances are calculated using the caret::varImp function, which computes importances in a different way depending on the classifier. I highly recommend reading the documentation here: https://topepo.github.io/caret/variable-importance.html
1 2 | crossvalidation_feature_importance(classifier, n_features = 0,
override_names = character(0), output_dataframe = FALSE)
|
classifier |
Output from 'crossvalidate' |
n_features |
The number of features to show |
override_names |
A character vector to override the names of the features. This may be useful if the variable names are too long. |
output_dataframe |
Default FALSE. If set to TRUE, this function returns a data frame of feature iportances instead of a plot. |
Either a plot or a data frame of feature importance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.