mvpa2.datasets.sources.skl_boston

mvpa2.datasets.sources.skl_boston(return_X_y=False)

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 the data and target 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 True

New in version 0.18.

Notes

This function has been auto-generated by wrapping load_boston() from the sklearn package. The documentation of this function has been kept verbatim. Consequently, the actual return value is not as described in the documentation, but the data is returned as a PyMVPA dataset.

Examples

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