c.caretList | R Documentation |
take N objects of class caretList and concatenate them into a larger object of class caretList for future ensembling
## S3 method for class 'caretList'
c(...)
... |
the objects of class caretList or train to bind into a caretList |
a caretList
object
data(iris)
model_list1 <- caretList(Sepal.Width ~ .,
data = iris,
tuneList = list(
lm = caretModelSpec(method = "lm")
)
)
model_list2 <- caretList(Sepal.Width ~ .,
data = iris, tuneLength = 1L,
tuneList = list(
rf = caretModelSpec(method = "rf")
)
)
bigList <- c(model_list1, model_list2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.