S3 method for plotting model

# S3 method for dorem
plot(x, type = "pred", ...)

Arguments

x

Object of class dorem

type

Type of plot. Options are "pred", "coef", "perf", which "pred" being default

...

Extra arguments

Examples

data("bike_score") banister_model <- dorem( Test_5min_Power ~ BikeScore, bike_score, method = "banister", control = dorem_control( cv_folds = 3, cv_repeats = 5, shuffle = TRUE ) )
#> Performing banister method using L-BFGS-B optimization
#> Training the model...
#> Cross-validating the model using 5 repeats of 3 folds
#> Fold1.Rep1...
#> Fold2.Rep1...
#> Fold3.Rep1...
#> Fold1.Rep2...
#> Fold2.Rep2...
#> Fold3.Rep2...
#> Fold1.Rep3...
#> Fold2.Rep3...
#> Fold3.Rep3...
#> Fold1.Rep4...
#> Fold2.Rep4...
#> Fold3.Rep4...
#> Fold1.Rep5...
#> Fold2.Rep5...
#> Fold3.Rep5...
#> Training the model using shuffled predictors...
#> Done!
plot(banister_model)
#> Warning: Removed 156 rows containing missing values (geom_point).