mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
[param] hierarchy traversal easier now
This commit is contained in:
parent
cff37293d9
commit
8d6eed6010
4 changed files with 57 additions and 33 deletions
|
|
@ -132,6 +132,9 @@ class Test(ListDictTestCase):
|
|||
self.assertIsNot(par.full_gradient, pcopy.full_gradient)
|
||||
self.assertTrue(pcopy.checkgrad())
|
||||
self.assert_(np.any(pcopy.gradient!=0.0))
|
||||
pcopy.optimize('bfgs')
|
||||
par.optimize('bfgs')
|
||||
np.testing.assert_allclose(pcopy.param_array, par.param_array, atol=.001)
|
||||
with tempfile.TemporaryFile('w+b') as f:
|
||||
par.pickle(f)
|
||||
f.seek(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue