mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
Moving imports, attempting to update RTD
This commit is contained in:
parent
9f0c2ea1b7
commit
447f7ceaa2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue