graphclust.cluster.HybridMSTGG#

class graphclust.cluster.HybridMSTGG(max_clusters=4, *, lambda_=2.0, depth=2, min_cluster_size=None, gath_geva=True, m=2.0, tol=0.0001, normalize=True)[source]#

Bases: ClusterMixin, BaseEstimator

Hybrid minimal spanning tree – Gath–Geva clustering (Vathy-Fogarassy, Feil and Abonyi 2005).

  1. The data are scaled to the unit hypercube and their MST is built.

  2. The cluster (subtree) with the largest hypervolume \(V_i=\sqrt{\det\mathbf{F}_i}\) is selected and split in two by

    • Zahn’s global criterion (edge longer than lambda_ times the mean edge of the subtree), else

    • Zahn’s local criterion (edge longer than lambda_ times the mean of the edges within depth steps), else

    • the hypervolume criterion: the edge whose removal minimizes the total fuzzy hypervolume \(\mathrm{FHV}=\sum_i V_i\) of the partition.

    The volume criterion cuts chains and bends that no length criterion detects. Cuts that would leave fewer than min_cluster_size samples on either side are not considered.

  3. Step 2 is repeated until max_clusters clusters exist.

  4. With gath_geva=True the crisp partition initializes graphclust.fuzzy.GathGeva, which returns memberships, centers and covariance matrices (a mixture of Gaussians).

Attributes:
tree_labels_crisp labels after the MST cutting
labels_final labels (Gath–Geva argmax if used)
membership_, cluster_centers_, covariances_from Gath–Geva
split_history_list of dicts (cluster, edge, criterion, volumes)