calculate_importance: Find the most important variables

Description Usage Arguments Examples

Description

This function calculates importance in a tidy way by extending the filterVarImp() function from caret.

Usage

1
calculate_importance(df, target, type = "classification")

Arguments

df

A a data frame

target

Target variable

type

Type of modelling task. Defaults to classification

Examples

1
2
3
4
5
recipes::credit_data %>%
  calculate_importance(Status)

recipes::credit_data %>%
  calculate_importance(Status, type = "regression")

konradsemsch/aider documentation built on May 22, 2019, 2:40 p.m.