From f00d23fb300f5408978c010690bd4f68b71c9e75 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 22 May 2013 12:10:52 +0100 Subject: [PATCH] plot function got broken with last commit, this fixes it. --- GPy/models/GP.py | 2 +- GPy/models/sparse_GP.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/GPy/models/GP.py b/GPy/models/GP.py index b518ce4e..e6c4c1d6 100644 --- a/GPy/models/GP.py +++ b/GPy/models/GP.py @@ -173,7 +173,7 @@ class GP(model): """ # normalize X values Xnew = (Xnew.copy() - self._Xmean) / self._Xstd - mu, var = self._raw_predict(Xnew, which_parts, full_cov) + mu, var = self._raw_predict(Xnew, full_cov=full_cov, which_parts=which_parts) # now push through likelihood mean, var, _025pm, _975pm = self.likelihood.predictive_values(mu, var, full_cov) diff --git a/GPy/models/sparse_GP.py b/GPy/models/sparse_GP.py index 6eb6fb49..8605e2a8 100644 --- a/GPy/models/sparse_GP.py +++ b/GPy/models/sparse_GP.py @@ -245,5 +245,3 @@ class sparse_GP(GP): var = Kxx - np.sum(np.sum(psi2*Kmmi_LmiBLmi[None,:,:],1),1) return mu, var[:, None] - -