mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 23:36:23 +02:00
Merge branch 'devel' into paramz
Conflicts: GPy/core/parameterization/parameter_core.py GPy/testing/pickle_tests.py
This commit is contained in:
commit
5d605277bc
9 changed files with 58 additions and 38 deletions
BIN
GPy/testing/pickle_test.pickle
Normal file
BIN
GPy/testing/pickle_test.pickle
Normal file
Binary file not shown.
|
|
@ -30,6 +30,12 @@ class ListDictTestCase(unittest.TestCase):
|
|||
np.testing.assert_array_equal(a1, a2)
|
||||
|
||||
class Test(ListDictTestCase):
|
||||
def test_load_pickle(self):
|
||||
import os, GPy
|
||||
m = GPy.load(os.path.join(os.path.abspath(os.path.split(__file__)[0]), 'pickle_test.pickle'))
|
||||
self.assertTrue(m.checkgrad())
|
||||
self.assertEqual(m.log_likelihood(), -4.7351019830022087)
|
||||
|
||||
def test_model(self):
|
||||
par = toy_model()
|
||||
pcopy = par.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue