This task specializes mlr3::Task for cluster problems. As an unsupervised task, this task has no target column. The task_type is set to "clust".

Predefined tasks are stored in the dictionary mlr_tasks.

Super class

mlr3::Task -> TaskClust

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

TaskClust$new(id, backend)

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.


Method clone()

The objects of this class are cloneable with this method.

Usage

TaskClust$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

library(mlr3) library(mlr3cluster) task = TaskClust$new("usarrests", backend = USArrests) task$task_type
#> [1] "clust"
# possible properties: mlr_reflections$task_properties$clust
#> [1] "strata" "groups" "weights"