Public methods
Method new()
Creates a new instance of this R6 class.
Usage
TaskRegr$new(id, backend, target, extra_args = list())
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.
extra_args
(named list()
)
Named list of constructor arguments, required for converting task types
via convert_task()
.
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
rows
integer()
Row indices.
Returns
numeric()
.
Method clone()
The objects of this class are cloneable with this method.
Usage
TaskRegr$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.