load_linnerud
- sklearn.datasets.load_linnerud(*, return_X_y=False, as_frame=False)
Load and return the physical exercise Linnerud dataset.
This dataset is suitable for multi-output regression tasks.
Samples total
20
Load and return the physical exercise Linnerud dataset.
This dataset is suitable for multi-output regression tasks.
Samples total | 20 |
Dimensionality | 3 (for both data and target) |
Features | integer |
Targets | integer |
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 objects.
If True, the data is a pandas DataFrame including columns with
appropriate dtypes (numeric, string or categorical). 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.
BunchDictionary-like object, with the following attributes.
The data matrix. If as_frame=True, data will be a pandas
DataFrame.
The regression targets. If as_frame=True, target will be
a pandas DataFrame.
The names of the dataset columns.
>>> from sklearn.datasets import load_linnerud
>>> linnerud = load_linnerud()
>>> linnerud.data.shape
(20, 3)
>>> linnerud.target.shape
(20, 3)
The names of the target columns.
Only present when as_frame=True. DataFrame with data and
target.
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 TrueA tuple of two ndarrays. The first contains a 2D ndarray of
shape (20, 3) with each row representing one sample and the columns
representing the features. The second ndarray of shape (20, 3) contains
the multi target samples. If as_frame=True, both arrays are pandas dataframes.