Skip to contents

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():

mlr_task_generators$get("friedman1")
tgen("friedman1")

Parameters

IdTypeDefaultRange
sdnumeric1\([0, \infty)\)

See also

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

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.


Method clone()

The objects of this class are cloneable with this method.

Usage

TaskGeneratorFriedman1$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

generator = tgen("friedman1")
task = generator$generate(200)
str(task$data())
#> Classes ‘data.table’ and 'data.frame':	200 obs. of  11 variables:
#>  $ y           : num  13.8 13.3 10.4 19 16.2 ...
#>  $ important1  : num  0.49 0.103 0.841 0.41 0.557 ...
#>  $ important2  : num  0.0527 0.3666 0.1868 0.5451 0.2685 ...
#>  $ important3  : num  0.445 0.755 0.386 0.917 0.514 ...
#>  $ important4  : num  0.951 0.975 0.457 0.578 0.918 ...
#>  $ important5  : num  0.7554 0.0424 0.1103 0.6752 0.687 ...
#>  $ unimportant1: num  0.5073 0.6267 0.0809 0.1337 0.9061 ...
#>  $ unimportant2: num  0.973 0.886 0.518 0.609 0.855 ...
#>  $ unimportant3: num  0.22926 0.00477 0.88507 0.56057 0.86738 ...
#>  $ unimportant4: num  0.28 0.485 0.879 0.922 0.139 ...
#>  $ unimportant5: num  0.464 0.148 0.223 0.625 0.374 ...
#>  - attr(*, ".internal.selfref")=<externalptr>