From 17ec4d6275c6887b0a45ee7c7b26f1fefa2d6b35 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 18 Jan 2013 14:33:52 +0000 Subject: [PATCH] change in unit_test to take into account the ARD changes in rbf --- GPy/testing/unit_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/testing/unit_tests.py b/GPy/testing/unit_tests.py index ff9aba0e..d2ef87f7 100644 --- a/GPy/testing/unit_tests.py +++ b/GPy/testing/unit_tests.py @@ -121,7 +121,7 @@ class GradientTests(unittest.TestCase): """ Testing GPLVM with rbf + bias and white kernel """ N, Q, D = 50, 1, 2 X = np.random.rand(N, Q) - k = GPy.kern.rbf(Q, 0.5, 0.9) + GPy.kern.bias(Q, 0.1) + GPy.kern.white(Q, 0.05) + k = GPy.kern.rbf(Q, 0.5, 0.9*np.ones((1,))) + GPy.kern.bias(Q, 0.1) + GPy.kern.white(Q, 0.05) K = k.K(X) Y = np.random.multivariate_normal(np.zeros(N),K,D).T m = GPy.models.GPLVM(Y, Q, kernel = k)