Nested Cross-Validation
This implements the Nested CV resampling procedure by Bates et al. (2024).
folds
:: integer(1)
The number of folds. This is initialized to 5
.
repeats
:: integer(1)
The number of repetitions. THis is initialized to 10
.
ncv = rsmp("nested_cv", folds = 3, repeats = 10L) ncv rr = resample(tsk("mtcars"), lrn("regr.featureless"), ncv)
Bates, Stephen, Hastie, Trevor, Tibshirani, Robert (2024). Cross-validation: what does it estimate and how well does it do it?
Journal of the American Statistical Association, 119 (546), 1434--1445.
mlr3::Resampling
-> ResamplingNestedCV
iters
: (integer(1)
)
The total number of resampling iterations.
new()
Creates a new instance of this R6 class.
ResamplingNestedCV$new()
unflatten()
Convert a resampling iteration to a more useful representation. For outer resampling iterations, inner
is NA
.
ResamplingNestedCV$unflatten(iter)
iter
: (integer(1)
)
The iteration.
list(rep, outer, inner)
clone()
The objects of this class are cloneable with this method.
ResamplingNestedCV$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links