Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

c.caretList

S3 definition for concatenating caretList


Description

take N objects of class caretList and concatenat them into a larger object of class caretList for future Ensamble'ing

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)

caretEnsemble

Ensembles of Caret Models

v2.0.1
MIT + file LICENSE
Authors
Zachary A. Deane-Mayer [aut, cre], Jared E. Knowles [aut]
Initial release
2019-12-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.