Description Usage Arguments Examples
This function calculates importance in a tidy way by extending the filterVarImp() function from caret.
1 | calculate_importance(df, target, type = "classification")
|
df |
A a data frame |
target |
Target variable |
type |
Type of modelling task. Defaults to classification |
1 2 3 4 5 | recipes::credit_data %>%
calculate_importance(Status)
recipes::credit_data %>%
calculate_importance(Status, type = "regression")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.