8.4.1.1. sklearn.datasets.load_boston¶
- sklearn.datasets.load_boston()¶
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, ‘target_names’, the meaning of the labels, and ‘DESCR’, the full description of the dataset.
Examples
>>> from sklearn.datasets import load_boston >>> boston = load_boston() >>> boston.data.shape (506, 13)