Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-14 17:15:34 +01:00
parent 96b5da161d
commit 9d1cb5a717

View file

@ -61,7 +61,8 @@ class RVTransformationTestCase(unittest.TestCase):
prior = GPy.priors.LogGaussian(.5, 0.1)
m.theta.set_prior(prior)
m.theta.constrain(trans)
self.assertTrue(m.checkgrad())
m.randomize()
self.assertTrue(m.checkgrad(1))
def test_Logexp(self):
self._test_trans(GPy.constraints.Logexp())