Bug in prod-coreg kernels fixed, not in the most elegant way though

This commit is contained in:
Ricardo 2013-09-18 17:57:17 +01:00
parent b47f9a1b06
commit 99c3af63c4
2 changed files with 13 additions and 7 deletions

View file

@ -259,9 +259,6 @@ class SparseGP(GPBase):
The derivative of the bound wrt the inducing inputs Z
"""
dL_dZ = self.kern.dK_dX(self.dL_dKmm, self.Z)
if hasattr(self,'multioutput'):
dL_dZ = dL_dZ*2 #NOTE Yes, this looks weird... but it works
if self.has_uncertain_inputs:
dL_dZ += self.kern.dpsi1_dZ(self.dL_dpsi1, self.Z, self.X, self.X_variance)
dL_dZ += self.kern.dpsi2_dZ(self.dL_dpsi2, self.Z, self.X, self.X_variance)