mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
itertools fixes from 2to3
This commit is contained in:
parent
8d66b7b4f0
commit
560950466d
3 changed files with 11 additions and 11 deletions
|
|
@ -364,7 +364,7 @@ class Model(Parameterized):
|
|||
gradient = self._grads(x).copy()
|
||||
np.where(gradient == 0, 1e-312, gradient)
|
||||
ret = True
|
||||
for nind, xind in itertools.izip(param_index, transformed_index):
|
||||
for nind, xind in zip(param_index, transformed_index):
|
||||
xx = x.copy()
|
||||
xx[xind] += step
|
||||
f1 = self._objective(xx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue