fuzzyclust.extensions#
Robust and shape-oriented variants of fuzzy c-means.
FCM assumes compact, roughly spherical clusters of similar size and is pulled away by outliers. The estimators of this sub-package relax one of these assumptions at a time:
PCM– possibilistic c-means: absolute (unnormalised) typicalities, robust to outliers, independent mode seeking per cluster;PFCM– possibilistic fuzzy c-means: memberships and typicalities;NoiseClustering– FCM with a virtual noise cluster at constant distance;KernelFCM– kernel-induced distance (input-space or feature-space prototypes);FuzzyCVarieties– lines / linear varieties as prototypes (fuzzy c-lines, c-elliptotypes);FuzzyCShells– circles / hyperspheres as prototypes;VolumePrototypeFCM– hyperellipsoidal cores of zero distance, with adaptive cluster merging;SCAD,FeatureWeightedFCM– cluster-specific and global attribute weights learned with the partition;plot_shells(),plot_varieties(),plot_typicality()– matplotlib helpers;make_circles(),make_close_blobs(),make_crossing_lines(),make_collinear_segments()– data generators.
PCM, PFCM, noise clustering, kernel FCM, fuzzy c-varieties and c-shells.
Classes#
|
Possibilistic c-means clustering (Krishnapuram and Keller). |
|
Possibilistic fuzzy c-means clustering (Pal, Pal, Keller and Bezdek). |
|
Noise clustering: fuzzy c-means with a virtual noise cluster (Davé). |
|
Kernel fuzzy c-means: FCM in the feature space of a Mercer kernel. |
|
Fuzzy c-varieties (FCV) clustering: linear-variety prototypes (Bezdek et al.). |
|
Fuzzy c-(spherical) shells: circles / hyperspheres as prototypes. |
|
Fuzzy c-means with volume prototypes and optional adaptive cluster merging (Kaymak & Setnes, 2002). |
|
Simultaneous clustering and attribute discrimination (Frigui & Nasraoui, 2004). |
|
Fuzzy c-means with global attribute weights (after Huang et al., 2005). |
Functions#
|
Gaussian (RBF) kernel matrix \(K_{kl}=\exp(-\gamma\|\mathbf{x}_k-\mathbf{y}_l\|^2)\). |
|
Scatter the data and draw the fitted circles of a |
|
Scatter the data and draw the fitted lines of a |
|
Scatter plot colored by the maximal typicality \(\max_i t_{ik}\) of every sample. |
|
Intersecting circles (shell clusters) with optional arcs and outliers. |
|
Two Gaussian clusters of different size and density close to each other. |
|
Line segments that cross at a common point. |
|
Two collinear segments separated by a gap, optionally with a third, oblique segment. |
Constants#
Built-in immutable sequence. |