4.1 Task and learner objects

First, we need to generate the following mlr3 objects from the task dictionary and the learner dictionary, respectively:

  1. The classification task

    library(mlr3)
    task = mlr_tasks$get("iris")
  2. A learner for the classification tree

    library(mlr3)
    learner = mlr_learners$get("classif.rpart")