as_task {mlr3} | R Documentation |
Convert to a Task
Description
Convert object to a Task or a list of Task.
The function supports:
Converting existing Task objects (with optional cloning)
Converting objects from other packages (e.g.,
OMLTask
from mlr3oml)Converting lists of objects to lists of tasks
For constructing tasks from data frames, use the dedicated converters:
-
as_task_classif()
for classification tasks -
as_task_regr()
for regression tasks -
as_task_unsupervised()
for unsupervised tasks
Usage
as_task(x, ...)
## S3 method for class 'Task'
as_task(x, clone = FALSE, ...)
as_tasks(x, ...)
## Default S3 method:
as_tasks(x, ...)
## S3 method for class 'list'
as_tasks(x, ...)
Arguments
x |
(any) |
... |
(any) |
clone |
( |
[Package mlr3 version 1.0.1 Index]