plot.caretEnsemble: Plot Diagnostics for an caretEnsemble Object

Description Usage Arguments Value Examples

View source: R/caretEnsemble.R

Description

This function makes a short plot of the performance of the component models of a caretEnsemble object on the AUC or RMSE metric

Usage

1
2
## S3 method for class 'caretEnsemble'
plot(x, ...)

Arguments

x

a caretEnsemble object

...

additional arguments to pass to plot

Value

A plot

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", "rpart"))
ens <- caretEnsemble(models)
plot(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.
3: In nominalTrainWorkflow(x = x, y = y, wts = weights, info = trainInfo,  :
  There were missing values in resampled performance measures.
Warning message:
Duplicated aesthetics after name standardisation: size 

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