8000 Revert "DOC Document that fetch_20newsgroups also returns target_name… · xhluca/scikit-learn@da5f25f · GitHub
[go: up one dir, main page]

Skip to content

Commit da5f25f

Browse files
author
Xing
authored
Revert "DOC Document that fetch_20newsgroups also returns target_names (scikit-learn#12783)"
This reverts commit 29ac841.
1 parent 9ea7f04 commit da5f25f

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

sklearn/datasets/twenty_newsgroups.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,11 @@ def fetch_20newsgroups(data_home=None, subset='train', categories=None,
216216
217217
Returns
218218
-------
219-
bunch : Bunch object with the following attribute:
220-
- bunch.data: list, length [n_samples]
221-
- bunch.target: array, shape [n_samples]
222-
- bunch.filenames: list, length [n_samples]
223-
- bunch.DESCR: a description of the dataset.
224-
- bunch.target_names: a list of categories of the returned data,
225-
length [n_classes]. This depends on the `categories` parameter.
219+
bunch : Bunch object
220+
bunch.data: list, length [n_samples]
221+
bunch.target: array, shape [n_samples]
222+
bunch.filenames: list, length [n_classes]
223+
bunch.DESCR: a description of the dataset.
226224
"""
227225

228226
data_home = get_data_home(data_home=data_home)
@@ -371,12 +369,11 @@ def fetch_20newsgroups_vectorized(subset="train", remove=(), data_home=None,
371369
372370
Returns
373371
-------
374-
bunch : Bunch object with the following attribute:
375-
- bunch.data: sparse matrix, shape [n_samples, n_features]
376-
- bunch.target: array, shape [n_samples]
377-
- bunch.target_names: a list of categories of the returned data,
378-
length [n_classes].
379-
- bunch.DESCR: a description of the dataset.
372+
bunch : Bunch object
373+
bunch.data: sparse matrix, shape [n_samples, n_features]
374+
bunch.target: array, shape [n_samples]
375+
bunch.target_names: list, length [n_classes]
376+
bunch.DESCR: a description of the dataset.
380377
381378
(data, target) : tuple if ``return_X_y`` is True
382379

0 commit comments

Comments
 (0)
0