Fixed MRD inducing point gradients

This commit is contained in:
Alan Saul 2015-09-24 13:44:28 +01:00
parent 76220cd4d2
commit 7b1c35f83f
5 changed files with 8 additions and 7 deletions

View file

@ -112,6 +112,7 @@ class SparseGP(GP):
#gradients wrt Z
self.Z.gradient = self.kern.gradients_X(self.grad_dict['dL_dKmm'], self.Z)
self.Z.gradient += self.kern.gradients_X(self.grad_dict['dL_dKnm'].T, self.Z, self.X)
self._Zgrad = self.Z.gradient.copy()
def _raw_predict(self, Xnew, full_cov=False, kern=None):