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

IdTypeDefaultRangeLevels
sdnumeric1\([0, \infty)\)-

See also

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

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

TaskGeneratorFriedman1$new()


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  12.8 9.2 15.6 13 13.7 ...
#>  $ important1  : num  0.773 0.709 0.572 0.914 0.14 ...
#>  $ important2  : num  0.44664 0.30906 0.00515 0.31693 0.13329 ...
#>  $ important3  : num  0.844 0.702 0.04 0.423 0.379 ...
#>  $ important4  : num  0.0451 0.1324 0.9499 0.3456 0.8819 ...
#>  $ important5  : num  0.306 0.425 0.153 0.523 0.836 ...
#>  $ unimportant1: num  0.2696 0.9906 0.3715 0.1596 0.0705 ...
#>  $ unimportant2: num  0.34 0.963 0.604 0.789 0.49 ...
#>  $ unimportant3: num  0.4797 0.214 0.071 0.8282 0.0588 ...
#>  $ unimportant4: num  0.264 0.032 0.75 0.726 0.375 ...
#>  $ unimportant5: num  0.528 0.894 0.493 0.832 0.584 ...
#>  - attr(*, ".internal.selfref")=<externalptr>