sklearn.datasets.load_boston()
sklearn.datasets.load_boston
-
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
(data, target)
instead of a Bunch object. See below for more information about thedata
andtarget
object.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
return_X_y
is TrueNew in version 0.18.
Examples
>>> from sklearn.datasets import load_boston >>> boston = load_boston() >>> print(boston.data.shape) (506, 13)
Examples using sklearn.datasets.load_boston
© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_boston.html