fuzzyclust.plotting.plot_clusters#

fuzzyclust.plotting.plot_clusters(X, labels=None, centers=None, ax=None, alpha=0.8, s=14, legend=True, **kwargs)[source]#

Scatter plot of 2-D data colored by (hard) cluster label with prototypes.

Parameters:
Xarray_like of shape (n_samples, 2)
labelsarray_like of shape (n_samples,), optional

Hard labels; -1 is drawn as gray “noise”.

centersarray_like of shape (n_clusters, 2), optional
axmatplotlib Axes, optional

Examples using fuzzyclust.plotting.plot_clusters#

Fuzzy c-means: memberships and the fuzziness exponent

Fuzzy c-means: memberships and the fuzziness exponent

Hard versus fuzzy partitions: k-means, k-medoids, and FCM

Hard versus fuzzy partitions: k-means, k-medoids, and FCM

Choosing the number of clusters with validity indices

Choosing the number of clusters with validity indices

Feature scaling on real data: the motorcycle data set

Feature scaling on real data: the motorcycle data set

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

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

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

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

Subtractive clustering: the number and location of clusters from density

Subtractive clustering: the number and location of clusters from density

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

Learning which features matter: SCAD and the weighted FCM

Learning which features matter: SCAD and the weighted FCM

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

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

Number of clusters: volume-based validity and fuzzy cluster similarity

Number of clusters: volume-based validity and fuzzy cluster similarity

Geodesic-distance-based fuzzy clustering versus fuzzy c-means

Geodesic-distance-based fuzzy clustering versus fuzzy c-means

Geodesic paths, the S-curve, and clustering of the Isomap projection

Geodesic paths, the S-curve, and clustering of the Isomap projection

Fuzzy c-regression models: switching regression with crossing lines

Fuzzy c-regression models: switching regression with crossing lines

Relational fuzzy c-means and NERF for non-Euclidean data

Relational fuzzy c-means and NERF for non-Euclidean data

Fuzzy k-prototypes on mixed numeric and categorical data

Fuzzy k-prototypes on mixed numeric and categorical data

Gower’s dissimilarity versus one-hot encoding for mixed data

Gower's dissimilarity versus one-hot encoding for mixed data

Clustering incomplete data: the four strategies of Hathaway and Bezdek

Clustering incomplete data: the four strategies of Hathaway and Bezdek

Pairwise constraints: must-link, cannot-link and competitive agglomeration

Pairwise constraints: must-link, cannot-link and competitive agglomeration

The lifetime criterion of evidence accumulation

The lifetime criterion of evidence accumulation