From 401bfbf20c9d065b42fb8e53a1ef720647484828 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Fri, 22 Apr 2016 16:15:32 +0100 Subject: [PATCH] [slicing] fixed slicing for second order derivatives --- GPy/kern/src/kern.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/kern/src/kern.py b/GPy/kern/src/kern.py index 6731a1c3..4379fb71 100644 --- a/GPy/kern/src/kern.py +++ b/GPy/kern/src/kern.py @@ -138,12 +138,12 @@ class Kern(Parameterized): \\frac{\partial^2 L}{\partial X\partial X_2} = \\frac{\partial L}{\partial K}\\frac{\partial^2 K}{\partial X\partial X_2} """ - raise(NotImplementedError, "This is the second derivative of K wrt X and X2, and not implemented for this kernel") + raise NotImplementedError("This is the second derivative of K wrt X and X2, and not implemented for this kernel") def gradients_XX_diag(self, dL_dKdiag, X, cov=True): """ The diagonal of the second derivative w.r.t. X and X2 """ - raise(NotImplementedError, "This is the diagonal of the second derivative of K wrt X and X2, and not implemented for this kernel") + raise NotImplementedError("This is the diagonal of the second derivative of K wrt X and X2, and not implemented for this kernel") def gradients_X_diag(self, dL_dKdiag, X): """ The diagonal of the derivative w.r.t. X