Skip to content

Commit

Permalink
less restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkl committed Sep 13, 2016
1 parent 3eb3329 commit ff08f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion robo/test/test_ei.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import GPy
import unittest
import numpy as np

from scipy.optimize import check_grad

from robo.models.gpy_model import GPyModel
from robo.acquisition.ei import EI
from robo.initial_design.init_random_uniform import init_random_uniform
Expand Down Expand Up @@ -41,7 +43,7 @@ def test_general_interface(self):
def test_check_grads(self):
x_ = np.array([[self.rng.rand()]])

assert check_grad(self.ei, lambda x: self.ei(x, True)[1], x_) < 1e-5
assert check_grad(self.ei, lambda x: self.ei(x, True)[1], x_) < 1e-3

if __name__ == "__main__":
unittest.main()

0 comments on commit ff08f22

Please sign in to comment.