9.3. Generated datasets
In addition, scikit-learn includes various random sample generators that can be used to build artificial datasets of controlled size and complexity.
9.3.1. Generators for classification and clustering
These generators produce a matrix of features and corresponding discrete targets.
9.3.1.1. Single label
make_blobs creates a multiclass dataset by allocating each class to one
normally-distributed cluster of points. It provides control over the centers and
standard deviations of each cluster. This dataset is used to demonstrate clustering.
import matplotlib.pyplot as