graphclust.datasets#
Benchmark data for graph-based clustering and visualization.
Synthetic generators (all return X, y and take random_state):
make_variety()– three clusters of different size, shape and density plus one outlier;make_chainlink()– three compact clusters, two of them joined by a thin chain;make_curves()– four curved, nearly touching clusters;make_s_curve(),make_swiss_roll()– 2-D manifolds embedded in 3-D;make_boxlinecircle()– a noisy cube, a bent line and a circle (shapes of different dimension).
load_boxlinecircle() returns the original 7100-point data set of the
authors (shipped with the package). Real data sets come from scikit-learn:
load_iris(), load_wine(), load_breast_cancer(),
load_digits().
Synthetic generators and bundled example data.
Functions#
The original 'boxlinecircle' data of Vathy-Fogarassy and Abonyi (7100 x 3; no labels). |
|
Wisconsin diagnostic breast cancer data (569 x 30, 2 classes) as shipped with scikit-learn. |
|
Handwritten digits (1797 x 64, 10 classes), a stand-in for the Semeion digits of the book. |
|
Iris flowers (150 x 4, 3 classes). |
|
Wine recognition data (178 x 13, 3 cultivars). |
|
|
A noisy cube, a bent line and a circle in 3-D (shapes of dimension 3, 1 and 1). |
|
ChainLink data: 75 points in 2-D -- three compact clusters, two of which are joined by a chain of points. |
|
Curves data: 267 points in 2-D forming four curved clusters of different size that nearly touch. |
|
S-curve manifold (scikit-learn generator); |
|
Swiss roll manifold (scikit-learn generator); |
|
Variety data: 100 points in 2-D, clusters of 22 (dense, round), 26 (elongated) and 51 (sparse) points and one outlier. |
|
Scale every feature to [0, 1] (constant features become 0). |