Skip to contents

By default this function creates a Pseudo-Learner (that cannot be used for training or prediction) for the given task type. This enables the conversion of OpenML Runs to mlr3::ResampleResults. This is well defined because each subcomponent (i.e. id) can only appear once in a Flow according to the OpenML docs.


# S3 method for OMLFlow
as_learner(x, task_type = NULL, ...)



(OMLFlow) The OMLFlow that is converted to a mlr3::Learner.


(character(1)) The task type to constrct a pseudo-learner. For more information see OMLFlow.


Additional arguments.