added the 2 pi term to the likelihood of the gp

Why the hell was this missing?
This commit is contained in:
James Hensman 2013-07-12 20:13:44 +01:00
parent be5a43a2c2
commit 274370de56

View file

@ -96,7 +96,7 @@ class GP(GPBase):
model for a new variable Y* = v_tilde/tau_tilde, with a covariance model for a new variable Y* = v_tilde/tau_tilde, with a covariance
matrix K* = K + diag(1./tau_tilde) plus a normalization term. matrix K* = K + diag(1./tau_tilde) plus a normalization term.
""" """
return -0.5 * self.output_dim * self.K_logdet + self._model_fit_term() + self.likelihood.Z return - 0.5 * self.num_data * self.output_dim * np.log(2.*np.pi) - 0.5 * self.output_dim * self.K_logdet + self._model_fit_term() + self.likelihood.Z
def _log_likelihood_gradients(self): def _log_likelihood_gradients(self):