mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 10:32:39 +02:00
[tests] pickle tests updated to new structure
This commit is contained in:
parent
1a8cae99a5
commit
2eedd7f385
1 changed files with 1 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ class Test(ListDictTestCase):
|
||||||
pcopy.optimize('bfgs')
|
pcopy.optimize('bfgs')
|
||||||
par.optimize('bfgs')
|
par.optimize('bfgs')
|
||||||
np.testing.assert_allclose(pcopy.param_array, par.param_array, atol=1e-6)
|
np.testing.assert_allclose(pcopy.param_array, par.param_array, atol=1e-6)
|
||||||
|
par.randomize()
|
||||||
with tempfile.TemporaryFile('w+b') as f:
|
with tempfile.TemporaryFile('w+b') as f:
|
||||||
par.pickle(f)
|
par.pickle(f)
|
||||||
f.seek(0)
|
f.seek(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue