From 447f7ceaa22a8b69bac7c0775334ed98a75d2f38 Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Tue, 17 Dec 2013 15:24:43 +0000 Subject: [PATCH] Moving imports, attempting to update RTD --- GPy/models_modules/gplvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/models_modules/gplvm.py b/GPy/models_modules/gplvm.py index da82540d..a5fe4284 100644 --- a/GPy/models_modules/gplvm.py +++ b/GPy/models_modules/gplvm.py @@ -9,11 +9,11 @@ from ..core import priors from ..core import GP from ..likelihoods import Gaussian from .. import util +from ..util.linalg import pca def initialise_latent(init, input_dim, Y): Xr = np.random.randn(Y.shape[0], input_dim) if init.lower() == 'pca': - from ..util.linalg import pca PC = pca(Y, input_dim)[0] Xr[:PC.shape[0], :PC.shape[1]] = PC return Xr