mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
GPLVM accepts an initial value for X (in case you don't want to use the default random/PCA init)
This commit is contained in:
parent
b7021261ea
commit
e415dcdd93
1 changed files with 3 additions and 2 deletions
|
|
@ -22,8 +22,9 @@ class GPLVM(GP_regression):
|
|||
:type init: 'PCA'|'random'
|
||||
|
||||
"""
|
||||
def __init__(self, Y, Q, init='PCA', **kwargs):
|
||||
X = self.initialise_latent(init, Q, Y)
|
||||
def __init__(self, Y, Q, init='PCA', X = None, **kwargs):
|
||||
if X is None:
|
||||
X = self.initialise_latent(init, Q, Y)
|
||||
GP_regression.__init__(self, X, Y, **kwargs)
|
||||
|
||||
def initialise_latent(self, init, Q, Y):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue