Fork me on GitHub

sklearn.datasets.load_boston

sklearn.datasets.load_boston()[source]

Load and return the boston house-prices dataset (regression).

Samples total 506
Dimensionality 13
Features real, positive
Targets real 5. - 50.
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.

Examples

>>> from sklearn.datasets import load_boston
>>> boston = load_boston()
>>> print(boston.data.shape)
(506, 13)
Previous