some work on ep, and some messing with wher ethe derivatives are computed (in the model, not the inference

This commit is contained in:
Ricardo 2014-02-26 11:38:46 +00:00
parent b6edc1a298
commit 0cf1e44c68
4 changed files with 40 additions and 5 deletions

View file

@ -70,7 +70,7 @@ class GP(Model):
def parameters_changed(self):
self.posterior, self._log_marginal_likelihood, grad_dict = self.inference_method.inference(self.kern, self.X, self.likelihood, self.Y, Y_metadata=self.Y_metadata)
self._dL_dK = grad_dict['dL_dK']
self.kern.update_gradients_full(grad_dict['dL_dK'])
def log_likelihood(self):
return self._log_marginal_likelihood