Create an initial predictor function from a trained mlr3 learner

mlr3_init_predictor(learner)

Arguments

learner

mlr3::Learner A trained learner used for initialization.

Value

function

Examples

 if (FALSE) {
 library("mlr3")
 l = lrn("classif.featureless")$train(tsk("sonar"))
 mlr3_init_predictor(l)
 }