From 323204541e04c5c3ca981188a2d04f4a6a1721ef Mon Sep 17 00:00:00 2001 From: Thang Bui Date: Tue, 1 Nov 2016 16:48:45 +0000 Subject: [PATCH] fixed seed in pep test script #448 --- GPy/testing/pep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPy/testing/pep.py b/GPy/testing/pep.py index 0d159d5d..2aa6a784 100644 --- a/GPy/testing/pep.py +++ b/GPy/testing/pep.py @@ -9,6 +9,7 @@ class PEPgradienttest(unittest.TestCase): def setUp(self): ###################################### # # 1 dimensional example + np.random.seed(10) N = 20 # sample inputs and outputs @@ -26,6 +27,7 @@ class PEPgradienttest(unittest.TestCase): # # more datapoints, check in alpha limits, the log marginal likelihood # # is consistent with FITC and VFE/Var_DTC M = 5 + np.random.seed(42) self.X1 = np.c_[np.linspace(-1., 1., N)] self.Y1 = np.sin(self.X1) + np.random.randn(N, 1) * 0.05 self.kernel = GPy.kern.RBF(input_dim=1, lengthscale=0.5, variance=1)