8000 DOC add example for sklearn.datasets.fetch_rcv1 (#28344) · jeremiedbb/scikit-learn@baa8003 · GitHub
[go: up one dir, main page]

Skip to content

Commit baa8003

Browse files
DOC add example for sklearn.datasets.fetch_rcv1 (scikit-learn#28344)
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
1 parent 1c93eb3 commit baa8003

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sklearn/datasets/_rcv1.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ def fetch_rcv1(
178178
described above. Returned only if `return_X_y` is True.
179179
180180
.. versionadded:: 0.20
181+
182+
Examples
183+
--------
184+
>>> from sklearn.datasets import fetch_rcv1
185+
>>> rcv1 = fetch_rcv1()
186+
>>> rcv1.data.shape
187+
(804414, 47236)
188+
>>> rcv1.target.shape
189+
(804414, 103)
181190
"""
182191
N_SAMPLES = 804414
183192
N_FEATURES = 47236

0 commit comments

Comments
 (0)
0