sklearn.datasets.load_diabetes()

sklearn.datasets.load_diabetes

sklearn.datasets.load_diabetes(return_X_y=False) [source]

Load and return the diabetes dataset (regression).

Samples total 442
Dimensionality 10
Features real, -.2 < x < .2
Targets integer 25 - 346

Read more in the User Guide.

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 and ‘target’, the regression target for each sample.

(data, target) : tuple if return_X_y is True

New in version 0.18.

Examples using sklearn.datasets.load_diabetes

© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_diabetes.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部