Learn R Programming

mlr3resampling (version 2026.2.24)

Resampling Algorithms for 'mlr3' Framework

Description

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, 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.

Copy Link

Version

Install

install.packages('mlr3resampling')

Monthly Downloads

325

Version

2026.2.24

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Toby Hocking

Last Published

February 26th, 2026

Functions in mlr3resampling (2026.2.24)

pvalue

P-values for comparing Same/Other/All training
proj_compute

Compute resampling results in a project
score

Score benchmark results
ResamplingSameOtherCV

Resampling for comparing training on same or other subsets
proj_results

Combine and save results in a project
Learners

Learner classes with special methods
proj_submit

Compute several resampling jobs
proj_test

Test a project with smaller data and fewer resampling iterations
ResamplingSameOtherSizesCV

Resampling for comparing train subsets and sizes
ResamplingVariableSizeTrainCV

Resampling for comparing training on same or other groups
proj_grid

Initialize a new project grid table
AZtrees

Arizona Trees