mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
Merge branch 'devel' of github.com:SheffieldML/GPy into ties
This commit is contained in:
commit
df1be1a5f6
7 changed files with 30 additions and 15 deletions
|
|
@ -287,7 +287,7 @@ class Model(Parameterized):
|
|||
# just check the global ratio
|
||||
dx = np.zeros(x.shape)
|
||||
dx[transformed_index] = step * (np.sign(np.random.uniform(-1, 1, transformed_index.size)) if transformed_index.size != 2 else 1.)
|
||||
|
||||
|
||||
# evaulate around the point x
|
||||
f1 = self._objective(x + dx)
|
||||
f2 = self._objective(x - dx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue