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.