fuzzyclust.ensemble.soft_mcla#
- fuzzyclust.ensemble.soft_mcla(memberships, n_clusters, random_state=None)[source]#
Soft meta-clustering algorithm, sMCLA (Punera and Ghosh, 2008).
Every cluster of every partition in the library is a hyperedge: a vector of \(N\) memberships. The hyperedges are grouped into
n_clustersmeta-clusters by their cosine similarity (the original partitions the meta-graph with METIS; here spectral clustering of the similarity matrix is used), each meta-cluster is collapsed into its mean membership vector, and the consensus membership of an object is its collapsed membership normalized over the meta-clusters.- Parameters:
- membershipssequence
ofarray_likeofshape(n_samples,c_q) - n_clusters
int - random_state
int,RandomStateinstanceorNone
- membershipssequence
- Returns: