mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
GPLVM get/setstate added
This commit is contained in:
parent
e8f2bec195
commit
266ec23f8a
1 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,12 @@ class GPLVM(GP):
|
|||
else:
|
||||
return np.random.randn(Y.shape[0], input_dim)
|
||||
|
||||
def getstate(self):
|
||||
return GP.getstate(self)
|
||||
|
||||
def setstate(self, state):
|
||||
GP.setstate(self, state)
|
||||
|
||||
def _get_param_names(self):
|
||||
return sum([['X_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], []) + GP._get_param_names(self)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue