cratepy.clustering.clusteringalgs.ClusteringAlgorithm

class ClusteringAlgorithm[source]

Bases: ABC

Clustering algorithm interface.

perform_clustering(self, data_matrix):

abstract: Perform cluster analysis and get cluster label of each dataset item.

Constructor.

List of Public Methods

perform_clustering

Perform cluster analysis and get cluster label of each dataset item.

Methods

abstract __init__()[source]

Constructor.

abstract perform_clustering(data_matrix)[source]

Perform cluster analysis and get cluster label of each dataset item.

Parameters:

data_matrix (numpy.ndarray (2d)) – Data matrix containing the required data to perform the cluster analysis (numpy.ndarray of shape (n_items, n_features)).

Returns:

cluster_labels – Cluster label (int) assigned to each dataset item.

Return type:

numpy.ndarray (1d)