TaskRegr: Regression Task

Description Format Construction Fields Methods See Also Examples

Description

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.

Format

R6::R6Class object inheriting from Task/TaskSupervised.

Construction

1
t = TaskRegr$new(id, backend, target)

Fields

See TaskSupervised.

Methods

See TaskSupervised.

See Also

Example regression tasks: boston_housing

Other Task: TaskClassif, TaskSupervised, Task, mlr_tasks

Examples

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

mllg/mlr3 documentation built on Sept. 27, 2019, 9:38 a.m.