From 4a300a7c9d16551b88d22650d32476171caea1d0 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 12 Sep 2015 19:08:22 +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 60b3acc9..f339934f 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -30,7 +30,7 @@ class RVTransformationTestCase(unittest.TestCase): m.theta.set_prior(prior) m.theta.unconstrain() m.theta.constrain(trans) - theta_s = prior.rvs(1e6) + theta_s = prior.rvs(1e5) if kde: # The PDF of the transformed variables p_phi = lambda phi : np.exp(-m._objective_grads(phi)[0]) @@ -56,7 +56,7 @@ class RVTransformationTestCase(unittest.TestCase): #plt.show(block=True) # END OF PLOT # Check the gradients at a few random points - #np.random.seed(12345) + np.random.seed(500) for i in range(5): m.theta = theta_s[i] self.assertTrue(m.checkgrad(verbose=True))