From 84e6a59cadd9b031b620d90929b091b010bfebe2 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 12 Sep 2015 19:57:48 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index dc9d9e2a..39874cd3 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -56,8 +56,10 @@ class RVTransformationTestCase(unittest.TestCase): # The following test cannot be very accurate self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1) # Check the gradients at a few random points + print(theta_s.min(), theta_s.max() for i in range(5): - m.theta = np.random.uniform(1e-5, 1e-3) + print(theta_s[i]) + m.theta = theta_s[i] self.assertTrue(m.checkgrad(verbose=True)) def test_Logexp(self):