From 9d1cb5a7175608e93e46d852ddd4fff2102a3b1e Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Mon, 14 Sep 2015 17:15:34 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index 6462a7e5..fbf20c28 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -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())