variable_importance | R Documentation |
Variable importance for dCVnet/glmnet models does not require permutation methods, because coefficients are directly interpretable.
variable_importance(x, scale = FALSE, percentage = FALSE)
x |
a dCVnet object |
scale |
Boolean. Should the return values be scaled so the most important value is 1? |
percentage |
Boolean. Should the return values be scaled so the most important value is 100? |
This VI function follows caret's example (see \code{\link[caret]{varImp}} function) and simply returns the absolute values of the coefficients. As variable importance is inferential this is done for the tuned "production" model rather than the cross-validated outer-loop.
a data.frame of variable names "Predictor" and variable importance "varImp".
varImp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.