mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
gmm_creation
This commit is contained in:
parent
fbb55a3998
commit
ef0ba91302
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue