diff --git a/sklearn/datasets/_base.py b/sklearn/datasets/_base.py index 850bdd16437ed..8a5b7a34d7f89 100644 --- a/sklearn/datasets/_base.py +++ b/sklearn/datasets/_base.py @@ -442,6 +442,10 @@ def load_wine(*, return_X_y=False, as_frame=False): Features real, positive ================= ============== + The copy of UCI ML Wine Data Set dataset is downloaded and modified to fit + standard format from: + https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data + Read more in the :ref:`User Guide `. Parameters @@ -483,10 +487,9 @@ def load_wine(*, return_X_y=False, as_frame=False): The full description of the dataset. (data, target) : tuple if ``return_X_y`` is True - - The copy of UCI ML Wine Data Set dataset is downloaded and modified to fit - standard format from: - https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data + A tuple of two ndarrays by default. The first contains a 2D array of shape + (178, 13) with each row representing one sample and each column representing + the features. The second array of shape (178,) contains the target samples. Examples -------- diff --git a/sklearn/tests/test_docstrings.py b/sklearn/tests/test_docstrings.py index d3def625c6509..3fa3adebfc2fb 100644 --- a/sklearn/tests/test_docstrings.py +++ b/sklearn/tests/test_docstrings.py @@ -14,7 +14,6 @@ FUNCTION_DOCSTRING_IGNORE_LIST = [ "sklearn.covariance._shrunk_covariance.ledoit_wolf", "sklearn.datasets._base.load_sample_image", - "sklearn.datasets._base.load_wine", "sklearn.datasets._covtype.fetch_covtype", "sklearn.datasets._kddcup99.fetch_kddcup99", "sklearn.datasets._lfw.fetch_lfw_pairs",