c.train | R Documentation |
take N objects of class train and concatenate into an object of class caretList for future ensembling
## S3 method for class 'train'
c(...)
... |
the objects of class train to bind into a caretList |
a caretList
object
data(iris)
model_lm <- caret::train(Sepal.Length ~ .,
data = iris,
method = "lm"
)
model_rf <- caret::train(Sepal.Length ~ .,
data = iris,
method = "rf",
tuneLength = 1L
)
model_list <- c(model_lm, model_rf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.