A simple Dictionary storing generator functions returning a Task.

Methods

See Dictionary.

S3 methods

See also

Examples

g = mlr_generators$get("smiley") task = g$generate(10) print(task)
#> <TaskClassif:smiley_10> (10 x 3) #> Target: classes #> Features (2): #> * dbl (2): x.1, x.2 #> #> Public: backend, cbind(), class_n, class_names, clone(), col_info, #> col_roles, data_formats, data(), droplevels(), feature_names, #> feature_types, filter(), formula(), groups, hash, head(), id, #> levels(), measures, missings(), 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()
#> classes x.1 x.2 #> 1: 1 -0.80340673 0.92586639 #> 2: 1 -0.58715481 0.89040037 #> 3: 2 0.80377884 1.04365235 #> 4: 2 0.83104807 0.95416347 #> 5: 3 -0.04665227 0.67255401 #> 6: 3 -0.09447880 0.23108967 #> 7: 4 -0.27339891 -0.93706701 #> 8: 4 0.56789296 -0.68735638 #> 9: 4 -0.61324264 -0.56843745 #> 10: 4 -0.96446838 -0.06556389