From caea2079051b860450ee00d6e3967e6d83bb4f8f Mon Sep 17 00:00:00 2001 From: Gael Varoquaux <gael.varoquaux@normalesup.org> Date: Sun, 6 May 2012 20:15:00 +0200 Subject: [PATCH] BUG: use permutation rather than shuffle --- sklearn/gaussian_process/gaussian_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/gaussian_process/gaussian_process.py b/sklearn/gaussian_process/gaussian_process.py index c6e6ebca26..b7d27feb35 100644 --- a/sklearn/gaussian_process/gaussian_process.py +++ b/sklearn/gaussian_process/gaussian_process.py @@ -755,7 +755,7 @@ class GaussianProcess(BaseEstimator, RegressorMixin): # Iterate over all dimensions of theta allowing for anisotropy if verbose: print("Now improving allowing for anisotropy...") - for i in self.random_state.shuffle(range(theta0.size)): + for i in self.random_state.permutation(theta0.size): if verbose: print "Proceeding along dimension %d..." % (i + 1) self.theta0 = array2d(theta_iso) -- GitLab