Description Format Construction Fields Methods See Also Examples
This task specializes Task and TaskSupervised for regression problems.
The target column is assumed to be numeric.
The task_type
is set to "classif"
.
Predefined tasks are stored in the mlr3misc::Dictionary mlr_tasks.
R6::R6Class object inheriting from Task/TaskSupervised.
1 |
id
:: character(1)
Identifier for the task.
backend
:: (DataBackend | data.frame()
| ...)
Either a DataBackend, or any object which is convertible to a DataBackend with as_data_backend()
.
E.g., a data.frame()
will be converted to a DataBackendDataTable.
target
:: character(1)
Name of the target column.
See TaskSupervised.
See TaskSupervised.
Example regression tasks: boston_housing
Other Task: TaskClassif
,
TaskSupervised
, Task
,
mlr_tasks
1 2 3 4 5 6 7 | task = TaskRegr$new("iris", backend = iris, target = "Sepal.Length")
task$task_type
task$formula()
task$truth()
# possible properties:
mlr_reflections$task_properties$regr
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.