mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
bugfix: sparseGP.likelihood.Z not added to log_ll
This commit is contained in:
parent
43cd5ad50b
commit
df1e765507
1 changed files with 17 additions and 17 deletions
|
|
@ -151,7 +151,7 @@ class sparse_GP(GP):
|
|||
B = -0.5 * self.D * (np.sum(self.likelihood.precision * self.psi0) - np.trace(self.A))
|
||||
C = -self.D * (np.sum(np.log(np.diag(self.LB)))) # + 0.5 * self.M * np.log(sf2))
|
||||
D = 0.5 * np.sum(np.square(self._LBi_Lmi_psi1V))
|
||||
return A + B + C + D
|
||||
return A + B + C + D + self.likelihood.Z
|
||||
|
||||
def _set_params(self, p):
|
||||
self.Z = p[:self.M * self.Q].reshape(self.M, self.Q)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue