as_resample_result: Convert to ResampleResult

View source: R/as_resample_result.R

as_resample_resultR Documentation

Convert to ResampleResult

Description

Convert object to a ResampleResult.

The S3 method for list expects argument x to be a list of Prediction objects and all other relevant objects (Task, Learners, and instantiated Resampling) must be provided, too. A more flexible way to manually create a ResampleResult is implemented in as_result_data().

Usage

as_resample_result(x, ...)

## S3 method for class 'ResampleResult'
as_resample_result(x, ...)

## S3 method for class 'ResultData'
as_resample_result(x, view = NULL, ...)

## S3 method for class 'list'
as_resample_result(x, task, learners, resampling, store_backends = TRUE, ...)

Arguments

x

(any)
Object to convert.

...

(any)
Currently not used.

view

(character())
See construction argument view of ResampleResult.

task

(Task).

learners

(list of trained Learners).

resampling

(Resampling).

store_backends

(logical(1))
If set to FALSE, the backends of the Tasks provided in data are removed.

Value

(ResampleResult).


mlr3 documentation built on Oct. 18, 2024, 5:11 p.m.