Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-12 20:18:52 +01:00
parent 4188ff3842
commit 56f9f8518d

View file

@ -57,6 +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):
print(theta[i])
m.theta = theta_s[i]
self.assertTrue(m.checkgrad(verbose=True))