Density Task Generator for Package 'distr6'
Source:R/TaskGeneratorSimdens.R
mlr_task_generators_simdens.Rd
A mlr3::TaskGenerator calling distr6::distrSimulate()
.
See distr6::distrSimulate()
for an explanation of the hyperparameters.
Dictionary
This TaskGenerator can be instantiated via the dictionary mlr_task_generators or with the associated sugar function tgen()
:
Super class
mlr3::TaskGenerator
-> TaskGeneratorSimdens
Examples
generator = mlr3::mlr_task_generators$get("simdens")
task = generator$generate(20)
head(task)
#> x
#> <num>
#> 1: -0.1029087
#> 2: -0.9740696
#> 3: 1.2706723
#> 4: 0.9608648
#> 5: 0.7687214
#> 6: 1.0359308