Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-12 20:00:19 +01:00
parent 84e6a59cad
commit cef00f40b3

View file

@ -56,7 +56,7 @@ class RVTransformationTestCase(unittest.TestCase):
# The following test cannot be very accurate # The following test cannot be very accurate
self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1) self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1)
# Check the gradients at a few random points # Check the gradients at a few random points
print(theta_s.min(), theta_s.max() print(theta_s.min(), theta_s.max())
for i in range(5): for i in range(5):
print(theta_s[i]) print(theta_s[i])
m.theta = theta_s[i] m.theta = theta_s[i]