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  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>