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()
:
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
,
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
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 16.31 24.87 19.79 7.93 17.69 ...
#> $ important1 : num 0.765 0.99 0.944 0.611 0.706 ...
#> $ important2 : num 0.15013 0.31232 0.7915 0.00186 0.08468 ...
#> $ important3 : num 0.0382 0.989 0.9477 0.2842 0.8083 ...
#> $ important4 : num 0.686 0.858 0.69 0.77 0.982 ...
#> $ important5 : num 0.1481 0.6111 0.3696 0.0946 0.9453 ...
#> $ unimportant1: num 0.465 0.608 0.61 0.757 0.694 ...
#> $ unimportant2: num 0.712 0.041 0.375 0.34 0.883 ...
#> $ unimportant3: num 0.0165 0.3787 0.8595 0.6584 0.1895 ...
#> $ unimportant4: num 0.392 0.647 0.081 0.373 0.786 ...
#> $ unimportant5: num 0.0198 0.5281 0.9636 0.5646 0.7617 ...
#> - attr(*, ".internal.selfref")=<externalptr>