mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
logic edits for copy
This commit is contained in:
parent
441a9f524d
commit
a98334e009
5 changed files with 144 additions and 138 deletions
|
|
@ -114,14 +114,12 @@ class SparseGP(GP):
|
|||
def _getstate(self):
|
||||
"""
|
||||
Get the current state of the class,
|
||||
here just all the indices, rest can get recomputed
|
||||
"""
|
||||
return GP._getstate(self) + [self.Z,
|
||||
self.num_inducing,
|
||||
self.X_variance]
|
||||
return GP._getstate(self) + [
|
||||
self.Z,
|
||||
self.num_inducing]
|
||||
|
||||
def _setstate(self, state):
|
||||
self.X_variance = state.pop()
|
||||
self.num_inducing = state.pop()
|
||||
self.Z = state.pop()
|
||||
GP._setstate(self, state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue