Public methods
Method new()
Creates a new instance of this R6 class.
Usage
TaskDens$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()
Returns the target column for specified row_ids, this is unsupervised so should not be
thought of as a 'true' prediction.
Defaults to all rows with role "use".
Usage
TaskDens$truth(rows = NULL)
Arguments
rowsinteger()
Row indices.
Returns
numeric().
Method clone()
The objects of this class are cloneable with this method.
Usage
TaskDens$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.