mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-02 00:02:38 +02:00
pickling and caching
This commit is contained in:
parent
60a071f18f
commit
f3b74fa85f
28 changed files with 481 additions and 686 deletions
|
|
@ -106,15 +106,3 @@ class SparseGP(GP):
|
|||
return mu, var
|
||||
|
||||
|
||||
def _getstate(self):
|
||||
"""
|
||||
Get the current state of the class,
|
||||
"""
|
||||
return GP._getstate(self) + [
|
||||
self.Z,
|
||||
self.num_inducing]
|
||||
|
||||
def _setstate(self, state):
|
||||
self.num_inducing = state.pop()
|
||||
self.Z = state.pop()
|
||||
GP._setstate(self, state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue