Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caea207

Browse files
committed
BUG: use permutation rather than shuffle
1 parent 23c042e commit caea207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/gaussian_process/gaussian_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def minus_reduced_likelihood_function(log10t):
755755
# Iterate over all dimensions of theta allowing for anisotropy
756756
if verbose:
757757
print("Now improving allowing for anisotropy...")
758-
for i in self.random_state.shuffle(range(theta0.size)):
758+
for i in self.random_state.permutation(theta0.size):
759759
if verbose:
760760
print "Proceeding along dimension %d..." % (i + 1)
761761
self.theta0 = array2d(theta_iso)

0 commit comments

Comments
 (0)