From 9fa6548f7d6a8136101b00b9143ada1dd13d95ce Mon Sep 17 00:00:00 2001 From: Kevin Keraudren Date: Sun, 8 May 2016 08:22:00 +0100 Subject: [PATCH] added mention of sklearn.utils.validation.check_random_state as a comment --- skimage/_shared/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skimage/_shared/utils.py b/skimage/_shared/utils.py index db741814..4e947a0c 100644 --- a/skimage/_shared/utils.py +++ b/skimage/_shared/utils.py @@ -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)):