sklearn.datasets.load_wine(return_X_y=False)
[source]
Load and return the wine dataset (classification).
New in version 0.18.
The wine dataset is a classic and very easy multi-class classification dataset.
Classes | 3 |
Samples per class | [59,71,48] |
Samples total | 178 |
Dimensionality | 13 |
Features | real, positive |
Read more in the User Guide.
Parameters: |
|
---|---|
Returns: |
|
Let’s say you are interested in the samples 10, 80, and 140, and want to know their class name.
>>> from sklearn.datasets import load_wine >>> data = load_wine() >>> data.target[[10, 80, 140]] array([0, 1, 2]) >>> list(data.target_names) ['class_0', 'class_1', 'class_2']
sklearn.datasets.load_wine
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_wine.html