Inherited methods
Method new()
Create a new spatiotemporal resampling Task
Usage
TaskClassifST$new(
id,
backend,
target,
positive = NULL,
label = NA_character_,
coordinate_names,
crs = NA_character_,
coords_as_features = FALSE,
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., am sf
will be converted to a DataBackendDataTable.
target
(character(1)
)
Name of the target column.
positive
(character(1)
)
Only for binary classification: Name of the positive class.
The levels of the target columns are reordered accordingly, so that the
first element of $class_names
is the positive class, and the second
element is the negative class.
label
(character(1)
)
Label for the new instance. Shown in as.data.table(mlr_tasks)
.
coordinate_names
(character(1)
)
The column names of the coordinates in the data.
crs
(character(1)
)
Coordinate reference system.
WKT2 or EPSG string.
coords_as_features
(logical(1)
)
If TRUE
, coordinates are used as features.
This is a shortcut for
task$set_col_roles(c("x", "y"), role = "feature")
with the assumption
that the coordinates in the data are named "x"
and "y"
.
extra_args
(named list()
)
Named list of constructor arguments, required for converting task types
via convert_task()
.
Method coordinates()
Returns coordinates of observations.
Usage
TaskClassifST$coordinates(row_ids = NULL)
Arguments
row_ids
(integer()
)
Vector of rows indices as subset of task$row_ids
.
Print the task.
Usage
TaskClassifST$print(...)
Arguments
...
Arguments passed to the $print()
method of the superclass.
Method clone()
The objects of this class are cloneable with this method.
Usage
TaskClassifST$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.