From 51a744aa454f4c696bd7f259fb833d697614529d Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sun, 13 Sep 2015 18:44:16 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index 4847e5e0..6535a844 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -57,13 +57,13 @@ 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 checks_failes = 0. - checks = 40. + checks = 40 for i in range(checks): m.theta = theta_s[i] print(m.theta, m.optimizer_array, m.param_array) if not m.checkgrad(1): checks_failes += 1. - self.assertTrue(checks_failed/checks > .5) + self.assertTrue(checks_failed/float(checks) > .7) def test_Logexp(self):