Friedman1 Regression Task Generator
Source:R/TaskGeneratorFriedman1.R
mlr_task_generators_friedman1.RdA 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_peak,
mlr_task_generators_simplex,
mlr_task_generators_smiley,
mlr_task_generators_spirals,
mlr_task_generators_xor
Super class
TaskGenerator -> TaskGeneratorFriedman1
Methods
Inherited methods
TaskGeneratorFriedman1$new()
Creates a new instance of this R6 class.
Usage
TaskGeneratorFriedman1$new()Examples
generator = tgen("friedman1")
task = generator$generate(200)
str(task$data())
#> Classes ‘data.table’ and 'data.frame': 200 obs. of 11 variables:
#> $ y : num 14.8 10.6 12.3 10.7 14.3 ...
#> $ important1 : num 0.381 0.781 0.857 0.557 0.479 ...
#> $ important2 : num 0.384 0.315 0.222 0.341 0.19 ...
#> $ important3 : num 0.214 0.626 0.407 0.332 0.6 ...
#> $ important4 : num 0.872 0.191 0.301 0.139 0.803 ...
#> $ important5 : num 0.0183 0.3933 0.6797 0.3991 0.8944 ...
#> $ unimportant1: num 0.632 0.4958 0.8567 0.5099 0.0483 ...
#> $ unimportant2: num 0.951 0.704 0.338 0.136 0.918 ...
#> $ unimportant3: num 0.97 0.283 0.157 0.812 0.848 ...
#> $ unimportant4: num 0.472 0.166 0.945 0.447 0.309 ...
#> $ unimportant5: num 0.5638 0.2516 0.0248 0.608 0.2025 ...
#> - attr(*, ".internal.selfref")=<pointer: 0x563eb7a81ee0>