Skip to contents

Standard holdout CI. This inference method can only be applied to decomposable losses.

Parameters

Only those from MeasureAbstractCi.

Super classes

mlr3::Measure -> mlr3inferr::MeasureAbstractCi -> MeasureCiHoldout

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage

MeasureCiHoldout$new(measure)

Arguments

measure

(Measure or character(1))
A measure of ID of a measure.


Method clone()

The objects of this class are cloneable with this method.

Usage

MeasureCiHoldout$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

ci_ho = msr("ci.holdout", "classif.acc")
ci_ho
#> 
#> ── <MeasureCiHoldout> (classif.acc): Holdout Interval ──────────────────────────
#> • Packages: mlr3, mlr3measures, and mlr3inferr
#> • Range: [0, 1]
#> • Minimize: FALSE
#> • Average: custom
#> • Parameters: alpha=0.05, within_range=TRUE
#> • Properties: primary_iters
#> • Predict type: response
#> • Predict sets: test
#> • Aggregator: mean()
rr = resample(tsk("sonar"), lrn("classif.featureless"), rsmp("holdout"))
rr$aggregate(ci_ho)
#>       classif.acc classif.acc.lower classif.acc.upper 
#>         0.5217391         0.4030112         0.6404670