mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
reverted stupid merge error
This commit is contained in:
parent
a27557e196
commit
dcec9d2a25
8 changed files with 41 additions and 17 deletions
|
|
@ -36,10 +36,10 @@ class GPLVM(GP):
|
|||
self.ensure_default_constraints()
|
||||
|
||||
def initialise_latent(self, init, input_dim, Y):
|
||||
Xr = np.random.randn(Y.shape[0], input_dim)
|
||||
if init == 'PCA':
|
||||
return PCA(Y, input_dim)[0]
|
||||
else:
|
||||
return np.random.randn(Y.shape[0], input_dim)
|
||||
Xr[:, :Y.shape[1]] = PCA(Y, input_dim)[0]
|
||||
return Xr
|
||||
|
||||
def getstate(self):
|
||||
return GP.getstate(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue