Prediction Object for Cluster AnalysisSource:
This object wraps the predictions returned by a learner of class LearnerClust, i.e. the predicted partition and cluster probability.
Creates a new instance of this R6 class.
PredictionClust$new( task = NULL, row_ids = task$row_ids, partition = NULL, prob = NULL, check = TRUE )
Task, used to extract defaults for
Row ids of the predicted observations, i.e. the row ids of the test set.
Vector of cluster partitions.
Numeric matrix of cluster membership probabilities with one column for each cluster and one row for each observation. Columns must be named with cluster numbers, row names are automatically removed. If
probis provided, but
partitionis not, the cluster memberships are calculated from the probabilities using
TRUE, performs some argument checks and predict type conversions.