mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-23 15:48:09 +02:00
Fixed checkgrad test to randomize before checking
This commit is contained in:
parent
0765ceb920
commit
b06b4ea8f1
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def checkgrads_generator(model):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def model_checkgrads(model):
|
def model_checkgrads(model):
|
||||||
|
model.randomize()
|
||||||
assert model.checkgrad()
|
assert model.checkgrad()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue