fixed bug in sparse GP plotting

This commit is contained in:
Nicolo Fusi 2013-05-21 16:36:12 +01:00
parent b59253fe01
commit 17a82f99bd
3 changed files with 2 additions and 33 deletions

View file

@ -234,7 +234,7 @@ class sparse_GP(GP):
Kxx = self.kern.Kdiag(Xnew, which_parts=which_parts)
var = Kxx - np.sum(Kx * np.dot(Kmmi_LmiBLmi, Kx), 0)
else:
assert which_parts=='all', "swithching out parts of variational kernels is not implemented"
# assert which_parts=='all', "swithching out parts of variational kernels is not implemented"
Kx = self.kern.psi1(self.Z, Xnew, X_variance_new)#, which_parts=which_parts) TODO: which_parts
mu = np.dot(Kx, self.Cpsi1V)
if full_cov: