Skip to content

Commit a2f1779

Browse files
authored
DOC default random_state in _fetch_20newsgroup is 42, not None (scikit-learn#26725)
1 parent 5b44065 commit a2f1779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/datasets/_twenty_newsgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def fetch_20newsgroups(
209209
make the assumption that the samples are independent and identically
210210
distributed (i.i.d.), such as stochastic gradient descent.
211211
212-
random_state : int, RandomState instance or None, default=None
212+
random_state : int, RandomState instance or None, default=42
213213
Determines random number generation for dataset shuffling. Pass an int
214214
for reproducible output across multiple function calls.
215215
See :term:`Glossary <random_state>`.

0 commit comments

Comments
 (0)