Ensembles of Caret Models
Overview
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.
New Features
- Add option to keep resamples for each repeated fold in
caretStackandcaretList, rather than aggregating to one resample per row in the original data. This can give your stacking model more variance to work with, but can lead to a lot more issues with aligning predictions from different models, particularly ones that use different resampling strategies. - Add an option to include original features from the raw data in the stack, if stacking on a new dataset rather than on stacked predictions.
- Add
plot_variable_importance()to visualize variable importance forcaretStackandcaretEnsemblemodels.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-03
- ERROR13 OK, 1 ERROR2026-03-10
Documentation
- Help pages
- 67 (27 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 29%
- Documented parameters
- 97%
- Return-value docs
- 64%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 1,160
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
17 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/zachmayer/caretensemble on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-07-08 · The repository has a site deploy workflow
pkgdown site last built 2026-07-08
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- OpenHandsfirst seen 2024-11-28Named in .Rbuildignore: .openhands_instructionsPull request it wrote: opened by a project memberCommits: at least 2 crediting it in the message
- Aiderfirst seen 2024-11-30Named in .gitignore: .aider*
- Claude Codefirst seen 2026-04-01Named in .Rbuildignore: .claude, CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 12 crediting it in the message
- CodeRabbitSeen in the repository: .coderabbit.yamlNamed in .Rbuildignore: .coderabbit.yaml
- Claude Opus 4.810 commits · Jun to Jul 2026
- Claude Opus 4.61 commit · Apr 2026
Dependencies
Installing caretEnsemble adds 65 packages (34 with compiled code, 51 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 4.0.2Latest
- 4.0.12024-09-12 · diff ↗
- 4.0.02024-08-17 · diff ↗ ·
removed 8 exports
autoplot, getBinaryTargetLevel, getMetric, getMetricSD, is.caretEnsemble, is.caretList, is.caretStack, setBinaryTargetLeveladded 8 exports
defaultControl, defaultMetric, extractMetric, greedyMSE, greedyMSE_caret, permutationImportance, tuneCheck, wtd.sd - RR 4.4.0 released · 2024-04-24
- 2.0.32023-09-20 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.0.22023-02-09 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 2.0.1
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
Show 5 earlier eventsHide 5 earlier events
- RR 3.3.0 released · 2016-05-03
- 2.0.02016-02-07 · diff ↗ ·
removed 3 exports
greedOptAUC, greedOptRMSE, safeOptAUCadded 5 exports
autoplot, getMetricSD, is.caretEnsemble, is.caretList, is.caretStack - RR 3.2.0 released · 2015-04-16
- 1.0.02015-01-16
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-01-16
- Total releases
- 8 / 11 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 1.5 MB / 6 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("caretEnsemble")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.