Skip to content

Commit

Permalink
DOC correct return type of check_random_state (scikit-learn#23320)
Browse files Browse the repository at this point in the history
Co-authored-by: Maren Westermann <[email protected]>
  • Loading branch information
marenwestermann and Maren Westermann committed May 12, 2022
1 parent f09f748 commit 05d5f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,8 @@ def check_random_state(seed):
Returns
-------
None
No returns.
:class:`numpy:numpy.random.RandomState`
The random state object based on `seed` parameter.
"""
if seed is None or seed is np.random:
return np.random.mtrand._rand
Expand Down

0 comments on commit 05d5f0a

Please sign in to comment.