ResampleResult: Container for Results of 'resample()'

Description Format Construction Fields Methods S3 Methods Examples

Description

This is the result container object returned by resample().

Note that all stored objects are accessed by reference. Do not modify any object without cloning it first.

Format

R6::R6Class object.

Construction

1
rr = ResampleResult$new(data, uhash = NULL)

Fields

Methods

S3 Methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
task = tsk("iris")
learner = lrn("classif.rpart")
resampling = rsmp("cv", folds = 3)
rr = resample(task, learner, resampling)
print(rr)

rr$aggregate(msr("classif.acc"))
rr$prediction()
rr$prediction()$confusion
rr$warnings
rr$errors

mllg/mlr3 documentation built on Sept. 27, 2019, 9:38 a.m.