fuzzyclust.datasets#

Synthetic data generators and small bundled data sets.

Every generator returns (X, y) with X of shape (n_samples, n_features) and y the generating component index, and accepts random_state for reproducibility. The generators are designed to expose the strengths and weaknesses of the individual clustering algorithms (spherical vs. elongated vs. differently dense clusters, curved manifolds, lines, rings, noise).

Synthetic generators and bundled example data.

Functions#

make_fuzzy_blobs([n_clusters, ...])

Isotropic Gaussian clusters with random centers (MATLAB nDexample).

make_ellipses([n_clusters, ...])

Elongated 2-D Gaussian clusters with different orientations.

make_different_densities([sizes, spreads, ...])

Clusters of very different size (density) and spread.

make_rings([n_samples_per_ring, radii, ...])

Concentric rings (hollow clusters) in 2-D.

make_lines([n_lines, n_samples_per_line, ...])

Noisy line segments in 2-D (linear sub-space prototypes).

make_noisy_blobs([n_clusters, ...])

Gaussian clusters plus uniformly distributed outliers.

make_curved_manifold([n_samples, noise, ...])

Points along two interleaved spiral arms (nonconvex clusters).

make_two_moons([n_samples, noise, random_state])

Two interleaving half circles (thin wrapper around scikit-learn).

load_motorcycle()

Motorcycle impact data (Silverman, 1985) used throughout the MATLAB toolbox.

load_iris()

Fisher's iris data (150 x 4, 3 classes) via scikit-learn.

load_wine()

Wine recognition data (178 x 13, 3 classes) via scikit-learn.

load_breast_cancer()

Wisconsin breast cancer data (569 x 30, 2 classes) via scikit-learn.