Creates a Task of arbitrary size.
Predefined task generators are stored in the mlr3misc::Dictionary mlr_task_generators,
e.g. xor
.
R6::R6Class object.
g = TaskGenerator$new(id, task_type, packages = character(), param_set = ParamSet$new())
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.
id
:: character(1)
Identifier of the learner.
packages
:: character()
Stores the names of required packages.
param_set
:: paradox::ParamSet
Description of available hyperparameters and hyperparameter settings.
task_type
:: character(1)
Stores the type of class this learner can operate on, e.g. "classif"
or "regr"
.
A complete list of task types is stored in mlr_reflections$task_types$type
.
generate(n)
integer(1)
-> Task
Creates a task of type task_type
with n
observations, possibly using additional settings stored in param_set
.
Other TaskGenerator: mlr_task_generators