[SSGPLVM] numerical stability

This commit is contained in:
Zhenwen Dai 2014-03-04 12:06:41 +00:00
parent 5c82fe39b9
commit 0f37cc721b
3 changed files with 7 additions and 5 deletions

View file

@ -36,7 +36,7 @@ class SSGPLVM(SparseGP):
X_variance = np.random.uniform(0,.1,X.shape)
gamma = np.empty_like(X) # The posterior probabilities of the binary variable in the variational approximation
gamma[:] = 0.5
gamma[:] = 0.5 + 0.01 * np.random.randn(X.shape[0], input_dim)
if Z is None:
Z = np.random.permutation(X.copy())[:num_inducing]