View source: R/S3GenericExtenstions.R
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
## Not run:
model_list1 <- caretList(Class ~ .,
data=Sonar, trControl = ctrl1,
tuneList = list(
glm=caretModelSpec(method='glm', family='binomial'),
rpart=caretModelSpec(method='rpart')
),
metric='ROC')
model_list2 <- caretList(Class ~ .,
data=Sonar,
trControl = ctrl1,
tuneList = list(
glm=caretModelSpec(method='rpart'),
rpart=caretModelSpec(method='rf')
),
metric='ROC')
bigList <- c(model_list1, model_list2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.