mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
pca module for initialization
This commit is contained in:
parent
f675c6b081
commit
8d1cae6459
1 changed files with 2 additions and 1 deletions
|
|
@ -14,5 +14,6 @@ def initialize_latent(init, input_dim, Y):
|
|||
PC = p.project(Y, min(input_dim, Y.shape[1]))
|
||||
Xr[:PC.shape[0], :PC.shape[1]] = PC
|
||||
else:
|
||||
pass
|
||||
var = Xr.var(0)
|
||||
return Xr, var/var.max()
|
||||
return Xr, p.fracs[:input_dim]
|
||||
Loading…
Add table
Add a link
Reference in a new issue