Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sklearn/datasets/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,13 +1133,13 @@ def load_linnerud(*, return_X_y=False, as_frame=False):
target = raw_df.values[1::2, 2]

Alternative datasets include the California housing dataset (i.e.
func:`~sklearn.datasets.fetch_california_housing`) and the Ames housing
dataset. You can load the datasets as follows:
:func:`~sklearn.datasets.fetch_california_housing`) and the Ames housing
dataset. You can load the datasets as follows::

from sklearn.datasets import fetch_california_housing
housing = fetch_california_housing()

for the California housing dataset and:
for the California housing dataset and::

from sklearn.datasets import fetch_openml
housing = fetch_openml(name="house_prices", as_frame=True)
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def load_boston(*, return_X_y=False):
target = raw_df.values[1::2, 2]

Alternative datasets include the California housing dataset [3]_
(i.e. func:`~sklearn.datasets.fetch_california_housing`) and Ames
(i.e. :func:`~sklearn.datasets.fetch_california_housing`) and Ames
housing dataset [4]_. You can load the datasets as follows::

from sklearn.datasets import fetch_california_housing
Expand Down