f_predict_plot_model_performance_regression: plot model performance

Description Usage Arguments Value See Also Examples

View source: R/f_predict.R

Description

add predictions to modelling dataframe and unnest, create a title column and a bins column

Usage

1

Arguments

data

dataframe with the columns title, bins, resid_abs, resid_squ, ape

Value

taglist

See Also

tagList ggplotly datatable f_predict_pl_regression

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
form = as.formula( 'displacement~cylinders+mpg')

ISLR::Auto %>%
 pipelearner::pipelearner() %>%
 pipelearner::learn_models( twidlr::rpart, form ) %>%
 pipelearner::learn_models( twidlr::randomForest, form ) %>%
 pipelearner::learn_models( twidlr::svm, form ) %>%
 pipelearner::learn() %>%
 f_predict_pl_regression( 'name' ) %>%
 unnest(preds) %>%
 mutate( bins = cut(target1, breaks = 3 , dig.lab = 4)
         , title = paste(models.id, cv_pairs.id, train_p, target, model) ) %>%
 f_predict_plot_model_performance_regression() %>%
 f_plot_obj_2_html(type = 'taglist', 'test_me', title = 'Model Performance')

file.remove('test_me.html')

## End(Not run)

erblast/oetteR documentation built on Feb. 15, 2018, 5:12 p.m.