Creates a Task of arbitrary size. Predefined task generators are stored in the Dictionary mlr_generators, e.g. xor.


R6::R6Class object.


g = Generator$new(id, task_type, packages = character(0L), param_set = ParamSet$new(), param_vals = list())
  • id :: character(1)
    Identifier for the learner.

  • task_type :: character(1)
    Type of the task the learner can operator on. E.g., "classif" or "regr".

  • packages :: character()
    Set of required packages. Note that these packages will be loaded via requireNamespace(), and are not attached.

  • param_set :: paradox::ParamSet
    Set of hyperparameters.

  • param_vals :: named list()
    List of hyperparameter settings.



  • generate(n)
    integer(1) -> Task
    Creates a task of type task_type with n observations, possibly using additional settings stored in param_set.

See also

Other Generator: mlr_generators