A simple Dictionary storing generator functions returning a Task.

Usage

See Dictionary.

See also

Examples

g = mlr_task_generators$get("smiley") task = g$generate(10) print(task)
#> <TaskClassif:smiley_10> (10 x 3) #> Target: class #> Features (2): #> * dbl (2): V2, x4 #> #> Public: all_classes, backend, cbind(), class_n, class_names, clone(), #> col_info, col_roles, data(), feature_names, feature_types, filter(), #> formula, group, hash, head(), id, levels(), measures, ncol, negative, #> nrow, positive, properties, rbind(), replace_features(), row_ids, #> row_roles, select(), set_col_role(), set_row_role(), target_names, #> task_type, truth(), weights
task$data()
#> class V2 x4 #> 1: 1 1.0562990 -0.81194526 #> 2: 1 0.9627561 -0.82803953 #> 3: 2 1.1052711 0.89769734 #> 4: 2 0.8950823 0.76254191 #> 5: 3 0.7495534 -0.03969011 #> 6: 3 0.0261561 -0.18163055 #> 7: 4 -0.8637020 -0.32321743 #> 8: 4 -0.3350773 0.83012752 #> 9: 4 -0.9191805 0.23447054 #> 10: 4 -0.7988560 -0.42742930