Confidence Intervals based on ResamplingNestedCV, including bias-correction.
This inference method can only be applied to decomposable losses.
Point Estimation
The point estimate uses a bias correction term as described in Bates et al. (2024).
Therefore, the results of directly applying a measure $aggregate(msr(<key>)) will be different
from the point estimate of $aggregate(msr("ci", <key>)), where the point estimate is obtained
by averaging over the outer CV results.
Parameters
Those from MeasureAbstractCi, as well as:
bias::logical(1)
Whether to do bias correction. This is initialized toTRUE. IfFALSE, the outer iterations are used for the point estimate and no bias correction is applied.
References
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.
Super classes
mlr3::Measure -> mlr3inferr::MeasureAbstractCi -> MeasureCiNestedCV
Methods
Method new()
Creates a new instance of this R6 class.
Usage
MeasureCiNestedCV$new(measure)Arguments
measure(
Measureorcharacter(1))
A measure of ID of a measure.
Examples
ci_ncv = msr("ci.ncv", "classif.acc")
ci_ncv
#>
#> ── <MeasureCiNestedCV> (classif.acc): Nested CV Interval ───────────────────────
#> • Packages: mlr3, mlr3measures, and mlr3inferr
#> • Range: [0, 1]
#> • Minimize: FALSE
#> • Average: custom
#> • Parameters: bias=TRUE, alpha=0.05, within_range=TRUE
#> • Properties: primary_iters
#> • Predict type: response
#> • Predict sets: test
#> • Aggregator: mean()