sklearn.datasets.load_boston(return_X_y=False) [source]
Load and return the boston house-prices dataset (regression).
| Samples total | 506 |
| Dimensionality | 13 |
| Features | real, positive |
| Targets | real 5. - 50. |
| Parameters: |
return_X_y : boolean, default=False. If True, returns New in version 0.18. |
|---|---|
| Returns: |
data : Bunch Dictionary-like object, the interesting attributes are: ‘data’, the data to learn, ‘target’, the regression targets, and ‘DESCR’, the full description of the dataset. (data, target) : tuple if New in version 0.18. |
>>> from sklearn.datasets import load_boston >>> boston = load_boston() >>> print(boston.data.shape) (506, 13)
sklearn.datasets.load_boston
© 2007–2017 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_boston.html