fuzzyclust.plotting.plot_membership_contours#

fuzzyclust.plotting.plot_membership_contours(estimator, X, ax=None, levels=8, resolution=200, cmap='Greys', labels=True)[source]#

Contour map of the maximal membership \(\max_i \mu_i(\mathbf{x})\) over the plane.

Reproduces the contour maps of the MATLAB clusteval function: the level curves show how each algorithm’s distance norm shapes the clusters (circles for FCM, ellipses for GK, Gaussian-like bumps for GG).

Parameters:
estimatorfitted fuzzyclust estimator with predict_proba
Xarray_like of shape (n_samples, 2)

Data (used for the plotting range and the scatter).

Examples using fuzzyclust.plotting.plot_membership_contours#

Fuzzy c-means: memberships and the fuzziness exponent

Fuzzy c-means: memberships and the fuzziness exponent

Gustafson–Kessel: clusters with their own shape

Gustafson–Kessel: clusters with their own shape

Gath–Geva: clusters of different size and density

Gath–Geva: clusters of different size and density

Applying a fitted model to new data

Applying a fitted model to new data

Feature scaling on real data: the motorcycle data set

Feature scaling on real data: the motorcycle data set

The fuzziness exponent m: from crisp cells to uniform memberships

The fuzziness exponent m: from crisp cells to uniform memberships

Local optima and restarts: initializing Gustafson–Kessel on crossing lines

Local optima and restarts: initializing Gustafson--Kessel on crossing lines

Distance norms: Euclidean, diagonal, and Mahalanobis fuzzy c-means

Distance norms: Euclidean, diagonal, and Mahalanobis fuzzy c-means

What makes a partition fuzzy: fuzzifiers, regularization, and annealing

What makes a partition fuzzy: fuzzifiers, regularization, and annealing

Three routes to the number of clusters: merging, validity scan, and stability

Three routes to the number of clusters: merging, validity scan, and stability

Possibilistic c-means: typicalities, scales and coincident clusters

Possibilistic c-means: typicalities, scales and coincident clusters

Possibilistic fuzzy c-means: memberships and typicalities together

Possibilistic fuzzy c-means: memberships and typicalities together

Noise clustering: a virtual cluster at constant distance δ

Noise clustering: a virtual cluster at constant distance δ

Kernel fuzzy c-means: rings and moons through the kernel trick

Kernel fuzzy c-means: rings and moons through the kernel trick

Fuzzy c-varieties: lines as prototypes, and the elliptotype compromise

Fuzzy c-varieties: lines as prototypes, and the elliptotype compromise

Fuzzy c-shells: circles as prototypes

Fuzzy c-shells: circles as prototypes

Volume prototypes and adaptive cluster merging

Volume prototypes and adaptive cluster merging

Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement

Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement