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_clusters meta-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 of array_like of shape (n_samples, c_q)
n_clustersint
random_stateint, RandomState instance or None
Returns:
Undarray of shape (n_samples, n_clusters)

Consensus memberships.

meta_labelsndarray of shape (sum of c_q,)

Meta-cluster of every hyperedge, in library order.