c.caretList {caretEnsemble}R Documentation

S3 definition for concatenating caretList

Description

take N objects of class caretList and concatenate them into a larger object of class caretList for future ensembling

Usage

## S3 method for class 'caretList'
c(...)

Arguments

...

the objects of class caretList or train to bind into a caretList

Value

a caretList object

Examples

## 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)


[Package caretEnsemble version 2.0.3 Index]