R/TaskGeneratorSimplex.R
mlr_task_generators_simplex.Rd
A TaskGenerator for the simplex task in mlbench::mlbench.simplex()
.
Note that the generator implemented in mlbench returns fewer samples than requested.
This TaskGenerator can be instantiated via the dictionary mlr_task_generators or with the associated sugar function tgen()
:
mlr_task_generators$get("simplex") tgen("simplex")
Dictionary of TaskGenerators: mlr_task_generators
as.data.table(mlr_resamplings)
for a complete table of all (also dynamically created) TaskGenerator implementations.
Other TaskGenerator:
TaskGenerator
,
mlr_task_generators_2dnormals
,
mlr_task_generators_cassini
,
mlr_task_generators_circle
,
mlr_task_generators_friedman1
,
mlr_task_generators_moons
,
mlr_task_generators_smiley
,
mlr_task_generators_spirals
,
mlr_task_generators_xor
,
mlr_task_generators
mlr3::TaskGenerator
-> TaskGeneratorSimplex
new()
Creates a new instance of this R6 class.
TaskGeneratorSimplex$new()
plot()
Creates a simple plot of generated data.
TaskGeneratorSimplex$plot(n = 200L, pch = 19L, ...)
n
(integer(1)
)
Number of samples to draw for the plot. Default is 200.
pch
(integer(1)
)
Point char. Passed to plot()
.
...
(any)
Additional arguments passed to plot()
.
clone()
The objects of this class are cloneable with this method.
TaskGeneratorSimplex$clone(deep = FALSE)
deep
Whether to make a deep clone.
#> Classes ‘data.table’ and 'data.frame': 100 obs. of 4 variables: #> $ y : Factor w/ 4 levels "A","B","C","D": 1 1 1 1 1 1 1 1 1 1 ... #> $ x1: num -0.565 -0.565 -0.456 -0.534 -0.357 ... #> $ x2: num -0.211 -0.45 -0.292 -0.226 -0.1 ... #> $ x3: num -0.237 -0.185 -0.21 -0.174 -0.261 ... #> - attr(*, ".internal.selfref")=<externalptr>