File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 77from __future__ import print_function
88
99import numpy as np
10- from scipy import linalg , optimize , rand
10+ from scipy import linalg , optimize
1111
1212from ..base import BaseEstimator , RegressorMixin
1313from ..metrics .pairwise import manhattan_distances
@@ -721,8 +721,9 @@ def minus_reduced_likelihood_function(log10t):
721721 # Generate a random starting point log10-uniformly
722722 # distributed between bounds
723723 log10theta0 = np .log10 (self .thetaL ) \
724- + rand (self .theta0 .size ).reshape (self .theta0 .shape ) \
725- * np .log10 (self .thetaU / self .thetaL )
724+ + self .random_state .rand (self .theta0 .size ).reshape (
725+ self .theta0 .shape ) * np .log10 (self .thetaU
726+ / self .thetaL )
726727 theta0 = 10. ** log10theta0
727728
728729 # Run Cobyla
You can’t perform that action at this time.
0 commit comments