Description Usage Arguments Examples
View source: R/get_rf_importance.R
Given a random forest model, extract the importance coefficient and percent.
1 | get_rf_importance(model, keep_gini = FALSE)
|
model |
A random forest model |
keep_gini |
Keep the coefficient or just the percent importance? |
1 2 | iris_rf <- ranger::ranger(Species ~ ., data = iris, importance = "impurity")
iris_rf %>% get_rf_importance()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.