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

See also

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 14.8 18 16.8 13.2 19.1 ... #> $ important1 : num 0.1784 0.4894 0.8829 0.0598 0.417 ... #> $ important2 : num 0.511 0.83 0.38 0.274 0.956 ... #> $ important3 : num 0.6125 0.141 0.452 0.0292 0.3361 ... #> $ important4 : num 0.786 0.307 0.702 0.44 0.399 ... #> $ important5 : num 0.79 0.57 0.584 0.804 0.92 ... #> $ unimportant1: num 0.75 0.561 0.877 0.659 0.416 ... #> $ unimportant2: num 0.926 0.81 0.42 0.603 0.618 ... #> $ unimportant3: num 0.74 0.957 0.686 0.24 0.48 ... #> $ unimportant4: num 0.99 0.677 0.17 0.504 0.885 ... #> $ unimportant5: num 0.0952 0.7254 0.0703 0.2954 0.6455 ... #> - attr(*, ".internal.selfref")=<externalptr>