@@ -216,13 +216,11 @@ def fetch_20newsgroups(data_home=None, subset='train', categories=None,
216
216
217
217
Returns
218
218
-------
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.
226
224
"""
227
225
228
226
data_home = get_data_home (data_home = data_home )
@@ -371,12 +369,11 @@ def fetch_20newsgroups_vectorized(subset="train", remove=(), data_home=None,
371
369
372
370
Returns
373
371
-------
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.
380
377
381
378
(data, target) : tuple if ``return_X_y`` is True
382
379
0 commit comments