gmm_creation

This commit is contained in:
beiwang 2016-11-11 20:14:44 +00:00
parent fbb55a3998
commit ef0ba91302
2 changed files with 2 additions and 1 deletions

View file

@ -58,7 +58,7 @@ class GmmNormalPrior(VariationalPrior):
self.link_parameter(self.variational_pi)
self.variational_pi.constrain_bounded(0.0, 1.0)
self.stop = 5
# self.stop = 5
def KL_divergence(self, variational_posterior):
# Lagrange multiplier maybe also needed here

View file

@ -52,6 +52,7 @@ class GmmBayesianGPLVM(SparseGP_MPI):
if likelihood is None:
likelihood = Gaussian()
# Need to define what the model is initialised like
pi = np.ones(n_component) / float(n_component) # p(k)
variational_pi = pi.copy()