R: Density Task Generator for Package 'distr6'

mlr_task_generators_simdens {mlr3proba} | R Documentation

## Density Task Generator for Package 'distr6'

### Description

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()`:

    mlr_task_generators$get("simdens")
    tgen("simdens")

### Super class

`mlr3::TaskGenerator` -> `TaskGeneratorSimdens`

### Methods

#### Public methods

- `TaskGeneratorSimdens$new()`

- `TaskGeneratorSimdens$clone()`

Inherited methods

- `mlr3::TaskGenerator$format()`

- `mlr3::TaskGenerator$generate()`

- `mlr3::TaskGenerator$print()`

#### Method `new()`

Creates a new instance of this R6 class.

##### Usage

    TaskGeneratorSimdens$new()

#### Method `clone()`

The objects of this class are cloneable with this method.

##### Usage

    TaskGeneratorSimdens$clone(deep = FALSE)

##### Arguments

`deep`

  Whether to make a deep clone.

### See Also

Dictionary of TaskGenerators: mlr3::mlr_task_generators

### Examples

    generator = mlr3::mlr_task_generators$get("simdens")
    task = generator$generate(20)
    task$head()

[Package mlr3proba version 0.4.0 Index]