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

Format

R6::R6Class object inheriting from Task.

Construction

t = TaskSupervised$new(id, task_type, backend, target)

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

Examples

task = TaskSupervised$new("iris", task_type = "classif", backend = iris, target = "Species")