TaskSupervised

0th

Percentile

Supervised Task

This is the abstract base class for task objects like TaskClassif and TaskRegr. It extends Task with methods to handle a target columns.

Keywords
internal
Format

R6::R6Class object inheriting from Task.

Construction

t = TaskSupervised$new(id, task_type, backend, target)
  • id :: character(1) Identifier for the task.

  • backend :: DataBackend 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.

  • task_type :: character(1) Set in the classes which inherit from this class. Must be an element of mlr_reflections$task_types.

  • target :: character(1) Name of the target column.

Fields

See Task.

Methods

All methods from Task, and additionally:

  • truth(row_ids = NULL) :: any True response for specified row_ids. Format depends on the task type. Defaults to all rows with role "use".

See Also

Other Task: TaskClassif, TaskRegr, Task, mlr_generators, mlr_tasks

Aliases
  • TaskSupervised
Examples
# NOT RUN {
task = TaskSupervised$new("iris", task_type = "classif", backend = iris, target = "Species")
# }
Documentation reproduced from package mlr3, version 0.1.0-9000, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.