From e1cfef70b238eae6e12279be29b14d6d4f404e95 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 12 Sep 2015 19:53:47 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index aa36349e..dc9d9e2a 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -57,7 +57,7 @@ class RVTransformationTestCase(unittest.TestCase): self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1) # Check the gradients at a few random points for i in range(5): - m.theta = 1./(5+i) + m.theta = np.random.uniform(1e-5, 1e-3) self.assertTrue(m.checkgrad(verbose=True)) def test_Logexp(self):