Load and return the diabetes dataset (regression).
Note
The meaning of each feature (i.e. feature_names
) might be unclear (especially for ltg
) as the documentation of the original dataset is not explicit. We provide information that seems correct in regard with the scientific literature in this field of research.
Read more in the User Guide.
If True, returns (data, target)
instead of a Bunch object. See below for more information about the data
and target
object.
Added in version 0.18.
If True, the data is a pandas DataFrame including columns with appropriate dtypes (numeric). The target is a pandas DataFrame or Series depending on the number of target columns. If return_X_y
is True, then (data
, target
) will be pandas DataFrames or Series as described below.
Added in version 0.23.
If True, the feature variables are mean centered and scaled by the standard deviation times the square root of n_samples
. If False, raw data is returned for the feature variables.
Added in version 1.1.
Bunch
Dictionary-like object, with the following attributes.
The data matrix. If as_frame=True
, data
will be a pandas DataFrame.
The regression target. If as_frame=True
, target
will be a pandas Series.
The names of the dataset columns.
Only present when as_frame=True
. DataFrame with data
and target
.
Added in version 0.23.
The full description of the dataset.
The path to the location of the data.
The path to the location of the target.
return_X_y
is True
Returns a tuple of two ndarray of shape (n_samples, n_features) A 2D array with each row representing one sample and each column representing the features and/or target of a given sample.
Added in version 0.18.
Examples
>>> from sklearn.datasets import load_diabetes >>> diabetes = load_diabetes() >>> diabetes.target[:3] array([151., 75., 141.]) >>> diabetes.data.shape (442, 10)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4