added print m and print m.all differentiation

This commit is contained in:
Max Zwiessele 2013-09-02 11:53:45 +01:00
parent 549f64892e
commit 57eda0b77c
5 changed files with 47 additions and 13 deletions

View file

@ -57,6 +57,7 @@ class BayesianGPLVM(SparseGP, GPLVM):
return SparseGP.getstate(self) + [self.init]
def setstate(self, state):
self._const_jitter = None
self.init = state.pop()
SparseGP.setstate(self, state)
@ -65,6 +66,9 @@ class BayesianGPLVM(SparseGP, GPLVM):
S_names = sum([['X_variance_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], [])
return (X_names + S_names + SparseGP._get_param_names(self))
def _get_print_names(self):
return SparseGP._get_print_names(self)
def _get_params(self):
"""
Horizontally stacks the parameters in order to present them to the optimizer.