Friedman1 Regression Task Generator
Source:R/TaskGeneratorFriedman1.R
mlr_task_generators_friedman1.Rd
A TaskGenerator for the friedman1 task in mlbench::mlbench.friedman1()
.
Dictionary
This TaskGenerator can be instantiated via the dictionary mlr_task_generators or with the associated sugar function tgen()
:
$get("friedman1")
mlr_task_generatorstgen("friedman1")
See also
as.data.table(mlr_task_generators)
for a table of available TaskGenerators in the running session (depending on the loaded packages).Extension packages for additional task types:
mlr3proba for probabilistic supervised regression and survival analysis.
mlr3cluster for unsupervised clustering.
Other TaskGenerator:
TaskGenerator
,
mlr_task_generators_2dnormals
,
mlr_task_generators_cassini
,
mlr_task_generators_circle
,
mlr_task_generators_moons
,
mlr_task_generators_simplex
,
mlr_task_generators_smiley
,
mlr_task_generators_spirals
,
mlr_task_generators_xor
,
mlr_task_generators
Super class
mlr3::TaskGenerator
-> TaskGeneratorFriedman1
Examples
generator = tgen("friedman1")
task = generator$generate(200)
str(task$data())
#> Classes ‘data.table’ and 'data.frame': 200 obs. of 11 variables:
#> $ y : num 18.02 12.97 5.45 14.58 14.82 ...
#> $ important1 : num 0.99 0.555 0.759 0.289 0.255 ...
#> $ important2 : num 0.581 1 0.024 0.116 0.671 ...
#> $ important3 : num 0.309 0.272 0.359 0.788 0.375 ...
#> $ important4 : num 0.4558 0.0764 0.1015 0.7911 0.5246 ...
#> $ important5 : num 0.268 0.244 0.871 0.986 0.707 ...
#> $ unimportant1: num 0.627 0.28 0.907 0.151 0.161 ...
#> $ unimportant2: num 0.793 0.772 0.54 0.893 0.722 ...
#> $ unimportant3: num 0.427 0.763 0.368 0.589 0.329 ...
#> $ unimportant4: num 0.124 0.14 0.9 0.976 0.433 ...
#> $ unimportant5: num 0.677 0.201 0.103 0.249 0.362 ...
#> - attr(*, ".internal.selfref")=<externalptr>