fuzzyclust.ensemble.cspa#
- fuzzyclust.ensemble.cspa(labels_list, n_clusters, random_state=None)[source]#
Cluster-based similarity partitioning, CSPA (Strehl and Ghosh, 2002), for hard partitions.
The co-association matrix of the crisp partitions is partitioned into
n_clustersgroups (spectral clustering stands in for METIS).- Parameters:
- labels_listsequence
ofarray_likeofshape(n_samples,) - n_clusters
int - random_state
int,RandomStateinstanceorNone
- labels_listsequence
- Returns:
- labels
ndarrayofshape(n_samples,)
- labels