mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
add test case for mpi
This commit is contained in:
parent
e37b58670c
commit
ef84339e46
2 changed files with 59 additions and 3 deletions
|
|
@ -84,6 +84,8 @@ class BayesianGPLVM(SparseGP_MPI):
|
|||
|
||||
def parameters_changed(self):
|
||||
super(BayesianGPLVM,self).parameters_changed()
|
||||
if isinstance(self.inference_method, VarDTC_minibatch):
|
||||
return
|
||||
|
||||
kl_fctr = 1.
|
||||
self._log_marginal_likelihood -= kl_fctr*self.variational_prior.KL_divergence(self.X)
|
||||
|
|
@ -98,9 +100,6 @@ class BayesianGPLVM(SparseGP_MPI):
|
|||
self.variational_prior.update_gradients_KL(self.X)
|
||||
|
||||
|
||||
if isinstance(self.inference_method, VarDTC_minibatch):
|
||||
return
|
||||
|
||||
#super(BayesianGPLVM, self).parameters_changed()
|
||||
#self._log_marginal_likelihood -= self.variational_prior.KL_divergence(self.X)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue