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 13.2 17 11.2 12 13.7 ... #> $ important1 : num 0.365 0.531 0.962 0.991 0.954 ... #> $ important2 : num 0.225 0.224 0.231 0.139 0.153 ... #> $ important3 : num 0.828 0.633 0.591 0.125 0.17 ... #> $ important4 : num 0.426 0.981 0.457 0.455 0.359 ... #> $ important5 : num 0.818 0.6219 0.0322 0.3482 0.5807 ... #> $ unimportant1: num 0.094 0.904 0.54 0.644 0.621 ... #> $ unimportant2: num 0.38 0.112 0.618 0.828 0.551 ... #> $ unimportant3: num 0.86 0.721 0.646 0.457 0.397 ... #> $ unimportant4: num 0.8 0.137 0.258 0.412 0.356 ... #> $ unimportant5: num 0.3982 0.0472 0.3758 0.4901 0.8512 ... #> - attr(*, ".internal.selfref")=<externalptr>