Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-13 23:01:17 +01:00
parent d07e5b0657
commit 9a6ae576e9

View file

@ -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
checks_failed = 0.
checks = 10
checks = 5
for i in range(checks):
m.theta = theta_s[i]
print(m.theta, m.optimizer_array, m.param_array)