fuzzyclust.base#
Base class for all prototype-based (hard and fuzzy) clustering estimators.
The alternating-optimization (Picard) loop shared by k-means, fuzzy c-means, Gustafson–Kessel, Gath–Geva and their derivatives is implemented once here. Concrete algorithms only define how prototypes are updated and how distances are measured.
Notation (see DESIGN.md): the data matrix \(\mathbf{X}\in\mathbb{R}^{N\times n}\)
has samples \(\mathbf{x}_k\) as rows; the partition matrix
\(\mathbf{U}=[\mu_{ik}]\in\mathbb{R}^{c\times N}\) collects the membership
of sample \(k\) in cluster \(i\). In code the partition is stored
transposed as membership_ of shape (n_samples, n_clusters) so that it
aligns with scikit-learn’s predict_proba layout.
The alternating-optimisation template every clusterer builds on.
Classes#
|
Abstract base of the prototype-based clustering algorithms. |
Constants#
Convert a string or number to a floating-point number, if possible. |