A simple Dictionary storing generator functions returning a Task.

Format

R6::R6Class object inheriting from mlr3misc::Dictionary.

Methods

See Dictionary.

S3 methods

See also

Example generator xor.

Other Dictionary: mlr_learners, mlr_measures, mlr_resamplings, mlr_tasks

Other Generator: Generator

Examples

g = mlr_generators$get("smiley") task = g$generate(10) print(task)
#> <TaskClassif:smiley_10> (10 x 3) #> Target: classes #> Properties: multiclass #> Features (2): #> * dbl (2): x.1, x.2
task$data()
#> classes x.1 x.2 #> 1: 1 -0.80540281 1.0243687 #> 2: 1 -0.78807548 1.1232476 #> 3: 2 0.74839362 1.1675697 #> 4: 2 0.70074928 0.9558837 #> 5: 3 -0.09746608 0.0811339 #> 6: 3 0.02860631 0.3652744 #> 7: 4 -0.80110835 -0.3273261 #> 8: 4 -0.67766847 -0.4852730 #> 9: 4 -0.43401426 -0.7762522 #> 10: 4 0.16774467 -0.9900446