switch psi2 statistics design

This commit is contained in:
Zhenwen Dai 2014-05-06 16:30:17 +01:00
parent 7d41001ae1
commit 06336bf0d4
12 changed files with 245 additions and 124 deletions

View file

@ -8,7 +8,7 @@ import numpy as np
from GPy.util.pca import pca
def initialize_latent(init, input_dim, Y):
Xr = np.random.randn(Y.shape[0], input_dim)
Xr = np.asfortranarray(np.random.randn(Y.shape[0], input_dim))
if init == 'PCA':
p = pca(Y)
PC = p.project(Y, min(input_dim, Y.shape[1]))