mlr_task_generators_simdens | R Documentation |
A mlr3::TaskGenerator calling distr6::distrSimulate()
.
See distr6::distrSimulate()
for an explanation of the hyperparameters.
See distr6::listDistributions()
for the names of the available distributions.
This TaskGenerator can be instantiated via the dictionary mlr_task_generators or with the associated sugar function tgen()
:
mlr_task_generators$get("simdens") tgen("simdens")
Id | Type | Default | Levels |
distribution | character | Normal | Arcsine, Arrdist, Bernoulli, Beta, BetaNoncentral, Binomial, Categorical, Cauchy, ChiSquared, ChiSquaredNoncentral, ... |
pars | untyped | - | |
mlr3::TaskGenerator
-> TaskGeneratorSimdens
new()
Creates a new instance of this R6 class.
TaskGeneratorSimdens$new()
help()
Opens the corresponding help page referenced by field $man
.
TaskGeneratorSimdens$help()
clone()
The objects of this class are cloneable with this method.
TaskGeneratorSimdens$clone(deep = FALSE)
deep
Whether to make a deep clone.
Dictionary of TaskGenerators: mlr3::mlr_task_generators
as.data.table(mlr_task_generators)
for a table of available TaskGenerators in the running session
Other TaskGenerator:
mlr_task_generators_coxed
,
mlr_task_generators_simsurv
# generate 20 samples from a standard Normal distribution
dens_gen = tgen("simdens")
dens_gen$param_set
task = dens_gen$generate(20)
head(task)
# generate 50 samples from a Binomial distribution with specific parameters
dens_gen = tgen("simdens", distribution = "Bernoulli", pars = list(prob = 0.8))
task = dens_gen$generate(50)
task$data()[["x"]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.