TaskRegr
From mlr3 v0.1.0-9000
by Michel Lang
Regression Task
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 Dictionary mlr_tasks.
- Keywords
- datasets
Format
R6::R6Class object inheriting from Task/TaskSupervised.
Construction
t = TaskRegr$new(id, backend, target)
id
::character(1)
Identifier for the task.backend
:: (DataBackend |data.frame()
| ...) Either a DataBackend, or any object which is convertible to a DataBackend withas_data_backend()
. E.g., adata.frame()
will be converted to a DataBackendDataTable.target
::character(1)
Name of the target column.
Fields
See TaskSupervised.
Methods
See TaskSupervised.
See Also
Example regression task: boston_housing
.
Other Task: TaskClassif
,
TaskSupervised
, Task
,
mlr_generators
, mlr_tasks
Examples
# NOT RUN {
task = TaskRegr$new("iris", backend = iris, target = "Sepal.Length")
task$task_type
task$formula()
task$truth()
# possible properties:
mlr_reflections$task_properties$regr
# }
Community examples
Looks like there are no examples yet.