mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
fixed optimize_restarts
This commit is contained in:
parent
126b45673b
commit
194d3ebda7
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ class model(parameterised):
|
|||
else:
|
||||
raise e
|
||||
if len(self.optimization_runs):
|
||||
i = np.argmax([o.f_opt for o in self.optimization_runs])
|
||||
i = np.argmin([o.f_opt for o in self.optimization_runs])
|
||||
self.expand_param(self.optimization_runs[i].x_opt)
|
||||
else:
|
||||
self.expand_param(initial_parameters)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue