mlr3 (version 0.1.0-9000)

convert_prediction: Prediction Object Helpers

convert_prediction() is called on the slave to check and convert the return value of the predict() function of a Learner.

as_prediction() is used to construct a Prediction object from the data returned by convert_prediction().

Description

Prediction Object Helpers

convert_prediction() is called on the slave to check and convert the return value of the predict() function of a Learner.

as_prediction() is used to construct a Prediction object from the data returned by convert_prediction().

Usage

convert_prediction(task, predicted)

as_prediction(task, predicted)

Arguments

task

:: Task Task as passed to $predict() of a Learner.

predicted

:: named list() Return value of the Learner.