mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
added mention of sklearn.utils.validation.check_random_state as a comment
This commit is contained in:
@@ -201,6 +201,7 @@ def check_random_state(seed):
|
||||
If seed is already a RandomState instance, return it.
|
||||
Otherwise raise ValueError.
|
||||
"""
|
||||
# Function originally from scikit-learn's module sklearn.utils.validation
|
||||
if seed is None or seed is np.random:
|
||||
return np.random.mtrand._rand
|
||||
if isinstance(seed, (numbers.Integral, np.integer)):
|
||||
|
||||
Reference in New Issue
Block a user