From 3341b3c56a4737c1861648828613dc4e1d777d83 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Wed, 27 May 2015 12:29:53 +0100 Subject: [PATCH] minor bugfix in raw_predict with full_cov for sparseGP --- GPy/core/sparse_gp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/core/sparse_gp.py b/GPy/core/sparse_gp.py index 0c5e1dd2..c7c99be6 100644 --- a/GPy/core/sparse_gp.py +++ b/GPy/core/sparse_gp.py @@ -133,7 +133,7 @@ class SparseGP(GP): var = Kxx - np.dot(Kx.T, np.dot(self.posterior.woodbury_inv, Kx)) elif self.posterior.woodbury_inv.ndim == 3: var = np.empty((Kxx.shape[0],Kxx.shape[1],self.posterior.woodbury_inv.shape[2])) - for i in range(var.shape[1]): + for i in range(var.shape[2]): var[:, :, i] = (Kxx - mdot(Kx.T, self.posterior.woodbury_inv[:, :, i], Kx)) var = var else: