summary.caretEnsemble: Summarize the results of caretEnsemble for the user.

Description Usage Arguments Examples

View source: R/caretEnsemble.R

Description

Summarize a caretEnsemble

Usage

1
2
## S3 method for class 'caretEnsemble'
summary(object, ...)

Arguments

object

a caretEnsemble to make predictions from.

...

optional additional parameters.

Examples

1
2
3
4
5
6
7
## Not run: 
set.seed(42)
models <- caretList(iris[1:50,1:2], iris[1:50,3], methodList=c("glm", "lm"))
ens <- caretEnsemble(models)
summary(ens)

## End(Not run)

Example output

Loading required package: lattice
Loading required package: ggplot2

Attaching package: 'ggplot2'

The following object is masked from 'package:caretEnsemble':

    autoplot

Warning messages:
1: In trControlCheck(x = trControl, y = target) :
  trControl$savePredictions not 'all' or 'final'.  Setting to 'final' so we can ensemble the models.
2: In trControlCheck(x = trControl, y = target) :
  indexes not defined in trControl.  Attempting to set them ourselves, so each model in the ensemble will have the same resampling indexes.
There were 25 warnings (use warnings() to see them)
The following models were ensembled: glm, lm 
They were weighted: 
1.0047 0.3203 NA
The resulting RMSE is: 0.1708
The fit for each individual model on the RMSE is: 
 method      RMSE    RMSESD
    glm 0.1747355 0.0296676
     lm 0.1747355 0.0296676

caretEnsemble documentation built on Dec. 16, 2019, 1:33 a.m.