Learn R Programming

caretEnsemble (version 2.0.3)

print.caretStack: Print a caretStack object

Description

This is a function to print a caretStack.

Usage

# S3 method for caretStack
print(x, ...)

Arguments

x

An object of class caretStack

...

ignored

Examples

Run this code
if (FALSE) {
library("rpart")
models <- caretList(
  x=iris[1:100,1:2],
  y=iris[1:100,3],
  trControl=trainControl(method="cv"),
  methodList=c("rpart", "glm")
)
meta_model <- caretStack(models, method="lm")
print(meta_model)
}

Run the code above in your browser using DataLab