f_predict_pl_regression_summarize: summarize prediction by f_predict_pl_regression()

Description Usage Arguments Value See Also Examples

View source: R/f_predict.R

Description

use this function to get a quick summary of pipelearner dataframe with unnested predictions. Will group by title

Usage

1

Arguments

pl

pipelearner dataframe with nested predictions

Value

dataframe with mape, mea, rtmse and median versions

See Also

f_predict_pl_regression

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
form = as.formula( 'disp~cyl+mpg')

pl = mtcars %>%
  mutate(names = row.names(.)) %>%
  pipelearner::pipelearner() %>%
  pipelearner::learn_models( rpart::rpart, form ) %>%
  pipelearner::learn_models( randomForest::randomForest, form ) %>%
  pipelearner::learn_models( e1071::svm, form ) %>%
  pipelearner::learn() %>%
  f_predict_pl_regression( 'names' ) %>%
  unnest( preds , .drop = FALSE ) %>%
  mutate( title = model ) %>%
  f_predict_pl_regression_summarize()

pl

erblast/oetteR documentation built on Aug. 4, 2018, 11:03 p.m.