mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
pickling unified with __getstate__ and __setstate__
This commit is contained in:
parent
1e06ca2d40
commit
05e8e75c58
5 changed files with 35 additions and 13 deletions
|
|
@ -53,7 +53,7 @@ class BayesianGPLVM(SparseGP, GPLVM):
|
|||
Get the current state of the class,
|
||||
here just all the indices, rest can get recomputed
|
||||
"""
|
||||
return [self.init] + SparseGP.__getstate__(self)
|
||||
return SparseGP.__getstate__(self) + [self.init]
|
||||
|
||||
def __setstate__(self, state):
|
||||
self.init = state.pop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue