fuzzyclust.ensemble#

Fuzzy cluster ensembles and consensus clustering.

Instead of trusting one run of an alternating-optimization clusterer, fit a library of soft partitions (random starts, sub-samples, feature subsets, several numbers of clusters) and combine them.

Soft consensus clustering and evidence accumulation.

Classes#

FuzzyClusterEnsemble([n_clusters, ...])

Consensus of a library of soft clusterings (Punera and Ghosh, 2008).

Functions#

coassociation_matrix(memberships[, similarity])

Soft co-association (similarity) matrix of a library of fuzzy partitions.

evidence_accumulation(S[, n_clusters, ...])

Evidence accumulation clustering of a co-association matrix (Fred and Jain, 2005).

soft_mcla(memberships, n_clusters[, ...])

Soft meta-clustering algorithm, sMCLA (Punera and Ghosh, 2008).

information_theoretic_kmeans(memberships, ...)

Information-theoretic k-means consensus, ITK (Punera and Ghosh, 2008).

cspa(labels_list, n_clusters[, random_state])

Cluster-based similarity partitioning, CSPA (Strehl and Ghosh, 2002), for hard partitions.

mcla(labels_list, n_clusters[, random_state])

Meta-clustering algorithm, MCLA (Strehl and Ghosh, 2002), for hard partitions.

stability_curve(X[, n_estimators_grid, ...])

Reproducibility of the consensus partition as the library grows.

make_overlapping_blobs([n_clusters, ...])

Gaussian groups that overlap enough for single clustering runs to disagree.

plot_coassociation(S[, labels, ax, cmap, ...])

Heat map of a co-association matrix with the samples reordered by (consensus) label.

plot_lifetimes(model_or_lifetimes[, ax, ...])

Bar chart of the lifetime of every number of clusters in the co-association dendrogram.