From eae3c28dc04d5b1d18046dfda437b16f20049152 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Fri, 28 Feb 2014 16:20:52 +0000 Subject: [PATCH] checkgrad --- GPy/core/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/core/model.py b/GPy/core/model.py index 6fd80d76..0e3913c8 100644 --- a/GPy/core/model.py +++ b/GPy/core/model.py @@ -283,7 +283,7 @@ class Model(Parameterized): return # just check the global ratio - dx = np.zeros(x.shape()) + dx = np.zeros(x.shape) dx[transformed_index] = step * np.sign(np.random.uniform(-1, 1, transformed_index.size)) # evaulate around the point x