Used to enable caching

trainModel(learner, task)

Arguments

learner

a class Learner object from mlr3

task

a class Task object from mlr3, compatible with learner

Value

learner with the fitted model

Details

internally runs learner$train(task)