mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
checkgrad
This commit is contained in:
parent
47e4026141
commit
eae3c28dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ class Model(Parameterized):
|
|||
return
|
||||
|
||||
# just check the global ratio
|
||||
dx = np.zeros(x.shape())
|
||||
dx = np.zeros(x.shape)
|
||||
dx[transformed_index] = step * np.sign(np.random.uniform(-1, 1, transformed_index.size))
|
||||
|
||||
# evaulate around the point x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue