f_model_importance: model importance

Description Usage Arguments Value Examples

Description

supports rpart, randomForest, svm and caret will return NULL for other models

Usage

1

Arguments

m

model

data

training data

Value

tibble

Examples

1
2
3
4
5
6
7
pl = pipelearner::pipelearner(mtcars) %>%
  pipelearner::learn_models( rpart::rpart, disp~. ) %>%
  pipelearner::learn_models( randomForest::randomForest, disp~. ) %>%
  pipelearner::learn_models( e1071::svm, disp~. ) %>%
  pipelearner::learn() %>%
  mutate( imp = map2(fit, train, f_model_importance) )
pl$imp

erblast/oetteR documentation built on May 27, 2019, 12:11 p.m.