Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-13 08:43:48 +01:00
parent 3a72634149
commit b3575c3fcb

View file

@ -59,7 +59,10 @@ class RVTransformationTestCase(unittest.TestCase):
for i in range(5):
m.theta = theta_s[i]
print(m.theta, m.optimizer_array, m.param_array)
self.assertTrue(m.checkgrad(verbose=True))
try:
self.assertTrue(m.checkgrad())
except:
self.assertTrue(m.checkgrad(1))
def test_Logexp(self):
self._test_trans(GPy.constraints.Logexp())