general bugfixing

This commit is contained in:
James Hensman 2014-02-13 08:53:14 +00:00
parent e4fcde3299
commit 3c68a9688d
6 changed files with 26 additions and 17 deletions

View file

@ -55,7 +55,8 @@ class GP(Model):
self.add_parameter(self.kern)
self.add_parameter(self.likelihood)
self.parameters_changed()
if self.__class__ is GP:
self.parameters_changed()
def parameters_changed(self):
self.posterior, self._log_marginal_likelihood, grad_dict = self.inference_method.inference(self.kern, self.X, self.likelihood, self.Y)
@ -111,7 +112,7 @@ class GP(Model):
This is to allow for different normalizations of the output dimensions.
"""
# normalize X values
#predict the latent function values
mu, var = self._raw_predict(Xnew, full_cov=full_cov, which_parts=which_parts)
# now push through likelihood