9. Dataset loading utilities
The sklearn.datasets package embeds some small toy datasets and provides helpers
to fetch larger datasets commonly used by the machine learning community to benchmark
algorithms on data that comes from the ‘real world’.
To evaluate the impact of the scale of the dataset (n_samples and
n_features) while controlling the statistical properties of the data
(typically the correlation and informativeness of the features), it is
also possible to generate synthetic data.
General dataset API. There are three main kinds of dataset interfaces that can be used to get datasets depending on the desired type of dataset.
The dataset loaders. They can be used to load small standard datasets, described in the Toy datasets section.
The dataset fetchers. They can be used to download and load larger datasets, described in the Real world datasets section.
Both loaders and fetchers functions return a object holding at least two items: an array of shape * with key (except for 20newsgroups) and a numpy array of length , containing the target values, with key .