mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Update pickle_tests.py
This commit is contained in:
parent
55fb393751
commit
2a01e9008a
1 changed files with 2 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ from GPy.models.gp_regression import GPRegression
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
from GPy.util.caching import Cacher
|
from GPy.util.caching import Cacher
|
||||||
from pickle import PicklingError
|
from pickle import PicklingError
|
||||||
|
import GPy
|
||||||
|
|
||||||
def toy_model():
|
def toy_model():
|
||||||
X = np.linspace(0,1,50)[:, None]
|
X = np.linspace(0,1,50)[:, None]
|
||||||
|
|
@ -64,8 +65,7 @@ class Test(ListDictTestCase):
|
||||||
|
|
||||||
with f:
|
with f:
|
||||||
pickle.dump(piov, f)
|
pickle.dump(piov, f)
|
||||||
f.seek(0)
|
|
||||||
|
|
||||||
pio2 = GPy.load(f)
|
pio2 = GPy.load(f)
|
||||||
#py3 fix
|
#py3 fix
|
||||||
#self.assertListDictEquals(dict(piov.items()), dict(pio2.iteritems()))
|
#self.assertListDictEquals(dict(piov.items()), dict(pio2.iteritems()))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue