[GPU] varDTC_gpu ready

This commit is contained in:
Zhenwen Dai 2014-05-09 16:12:16 +01:00
parent ddbf15d763
commit a702b0862b
4 changed files with 52 additions and 113 deletions

View file

@ -42,7 +42,8 @@ class SSGPLVM(SparseGP):
X_variance = np.random.uniform(0,.1,X.shape)
gamma = np.empty_like(X, order='F') # The posterior probabilities of the binary variable in the variational approximation
gamma[:] = 0.5 + 0.01 * np.random.randn(X.shape[0], input_dim)
#gamma[:] = 0.5 + 0.01 * np.random.randn(X.shape[0], input_dim)
gamma[:] = 0.5
if group_spike:
gamma[:] = gamma.mean(axis=0)