Ensembles of Caret Models

Functions for creating ensembles of caret models: caretList() and caretStack(). caretList() is a convenience function for fitting multiple caret::train() models to the same dataset. caretStack() will make linear or non-linear combinations of these models, using a caret::train() model as a meta-model, and caretEnsemble() will make a robust linear combination of models using a GLM.

Build Status Coverage Status Github Issues Pending Pull-Requests CRAN_Status_Badge Downloads License Badges Join the chat at https://gitter.im/zachmayer/caretEnsemble

Framework for fitting multiple caret models using the same re-sampling strategy as well as creating ensembles of such models. Use caretList to fit multiple models, and then use caretEnsemble to combine them greedily, or caretStack to combine them using a caret model.

caretEnsemble was inspired by medley, which in turn was inspired by Caruana et. al.'s (2004) paper Ensemble Selection from Libraries of Models.

Install the stable version from CRAN:


Install the dev version from github:


There are also tagged versions of caretEnsemble on github you can install via devtools. For example, to install the original draft of the API:

devtools::install_github('zachmayer/[email protected]')

Code of Conduct:

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2.0.1 by Zachary A. Deane-Mayer, 2 years ago


Report a bug at https://github.com/zachmayer/caretEnsemble/issues

Browse source code at https://github.com/cran/caretEnsemble

Authors: Zachary A. Deane-Mayer [aut, cre] , Jared E. Knowles [aut]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports methods, pbapply, ggplot2, digest, plyr, lattice, gridExtra, data.table, caret

Suggests caTools, testthat, lintr, randomForest, glmnet, rpart, kernlab, nnet, e1071, ipred, pROC, knitr, mlbench, MASS, gbm, klaR, rmarkdown

Imported by LDLcalc.

See at CRAN