dotplot.caretStack: Comparison dotplot for a caretStack object

View source: R/caretStack.R

dotplot.caretStackR Documentation

Comparison dotplot for a caretStack object

Description

This is a function to make a dotplot from a caretStack. It uses dotplot from the caret package on all the models in the ensemble, excluding the final ensemble model.At the moment, this function only works if the ensembling model has the same number of resamples as the component models.

Usage

## S3 method for class 'caretStack'
dotplot(x, ...)

Arguments

x

An object of class caretStack

...

passed to dotplot

Examples

set.seed(42)
models <- caretList(
  x = iris[1:100, 1:2],
  y = iris[1:100, 3],
  methodList = c("rpart", "glm")
)
meta_model <- caretStack(models, method = "lm")
lattice::dotplot(meta_model)

caretEnsemble documentation built on Sept. 13, 2024, 1:11 a.m.