Public methods
Method new()
Creates a new instance of this R6 class.
Usage
TaskRegr$new(id, backend, target)
Arguments
id(character(1))
Identifier for the new instance.
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.
target(character(1))
Name of the target column.
Method truth()
True response for specified row_ids. Format depends on the task type.
Defaults to all rows with role "use".
Usage
TaskRegr$truth(rows = NULL)
Arguments
rowsinteger()
Row indices.
Returns
numeric().
Method clone()
The objects of this class are cloneable with this method.
Usage
TaskRegr$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.