Resampling Algorithms for 'mlr3' Framework
Overview
A supervised learning algorithm inputs a train set, and outputs a prediction function, which can be used on a test set. If each data point belongs to a subset (such as geographic region, year, etc), then how do we know if subsets are similar enough so that we can get accurate predictions on one subset, after training on Other subsets? And how do we know if training on All subsets would improve prediction accuracy, relative to training on the Same subset? SOAK, Same/Other/All K-fold cross-validation, doi:10.1002/sam.70055 can be used to answer these questions, by fixing a test subset, training models on Same/Other/All subsets, and then comparing test error rates (Same versus Other and Same versus All). Also provides code for estimating how many train samples are required to get accurate predictions on a test set.
- CSS width 1000px in vignettes.
From NEWS in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-05-20
Show 1 earlier changeHide 1 earlier change
- ERROR9 OK, 5 ERROR2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 80%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/tdhock/mlr3resampling on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing mlr3resampling adds 26 packages (13 with compiled code, 19 MB of source tarballs). Heaviest: data.table 5.7 MB, palmerpenguins 2.9 MB, Rcpp 1.8 MB.
Code & Tests
Datasets
People & History
Show 6 more contributorsHide 6 contributors
Pick two releases to compare their code metrics.
- 2026.9.24Latest
- 2026.5.192026-05-19 · diff ↗ ·
removed 2 exports
ResamplingSameOtherCV, ResamplingVariableSizeTrainCVadded 1 export
pvalue_downsample - RR 4.6.0 released · 2026-04-24
- 2026.2.242026-02-26 · diff ↗
- 2025.11.192025-11-20 · diff ↗ ·
removed 1 export
proj_compute_until_doneadded 8 exports
proj_fread, proj_test, proj_compute_mpi, proj_compute_all, proj_todo, LearnerRegrCVGlmnetSave, LearnerClassifCVGlmnetSave, AutoTunerTorch_epochs - 2025.6.232025-06-23 · diff ↗ ·
added 6 exports
proj_grid, proj_compute, proj_compute_until_done, proj_results, proj_submit, proj_results_save - RR 4.5.0 released · 2025-04-11
- 2025.3.30
- 2024.9.62024-09-11 · diff ↗
- 2024.7.72024-07-12 · diff ↗
- 2024.7.32024-07-06 · diff ↗
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-04-16
- 2024.4.14
- archivedRemoved from CRAN2024-02-29issues were not corrected in time
- 2024.1.232024-02-01 · diff ↗
Package metadata
- First published
- 2023-12-21
- Total releases
- 13 / 3 yrs
- License
- LGPL-3 OSI · relicensed from GPL-3 in 2025.6.23
- Bundled data
- 169 KB / 1 file
- Download size
- 331 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlr3resampling")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1002/sam.70055.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.