R: Convert to a Density Task

as_task_dens {mlr3proba} | R Documentation

## Convert to a Density Task

### Description

Convert object to a density task (TaskDens).

### Usage

    as_task_dens(x, ...)

    ## S3 method for class 'TaskDens'
    as_task_dens(x, clone = FALSE, ...)

    ## S3 method for class 'data.frame'
    as_task_dens(x, id = deparse(substitute(x)), ...)

    ## S3 method for class 'DataBackend'
    as_task_dens(x, id = deparse(substitute(x)), ...)

### Arguments

`x` | (`any`) Object to convert, e.g. a `data.frame()`.
`...` | (`any`) Additional arguments.
`clone` | (`logical(1)`) If `TRUE`, ensures that the returned object is not the same as the input `x`.
`id` | (`character(1)`) Id for the new task. Defaults to the (deparsed and substituted) name of `x`.

[Package mlr3proba version 0.4.3 Index]