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().
as_resample_result(x, ...)# S3 method for ResampleResult
as_resample_result(x, ...)
# S3 method for ResultData
as_resample_result(x, view = NULL, ...)
# S3 method for list
as_resample_result(x, task, learners, resampling, store_backends = TRUE, ...)
(ResampleResult).
(any)
Object to convert.
(any)
Currently not used.
(character())
See construction argument view of ResampleResult.
(Task).
(list of trained Learners).
(Resampling).
(logical(1))
If set to FALSE, the backends of the Tasks provided in data are
removed.