Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-13 07:55:16 +01:00
parent a9a53f09ac
commit 61c972fbd5

View file

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