mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 02:52:40 +02:00
slicing tests and ipdb delete
This commit is contained in:
parent
2d8246d33f
commit
81d35686d9
2 changed files with 28 additions and 8 deletions
|
|
@ -651,7 +651,7 @@ class LaplaceTests(unittest.TestCase):
|
|||
m2['.*white'].constrain_fixed(1e-6)
|
||||
m2['.*rbf.variance'].constrain_bounded(1e-4, 10)
|
||||
m2.randomize()
|
||||
|
||||
|
||||
if debug:
|
||||
print m1
|
||||
print m2
|
||||
|
|
@ -663,7 +663,7 @@ class LaplaceTests(unittest.TestCase):
|
|||
if debug:
|
||||
print m1
|
||||
print m2
|
||||
|
||||
|
||||
m2[:] = m1[:]
|
||||
|
||||
#Predict for training points to get posterior mean and variance
|
||||
|
|
@ -702,7 +702,7 @@ class LaplaceTests(unittest.TestCase):
|
|||
m1.randomize()
|
||||
import ipdb;ipdb.set_trace()
|
||||
m2[:] = m1[:]
|
||||
|
||||
|
||||
np.testing.assert_almost_equal(m1.log_likelihood(), m2.log_likelihood(), decimal=2)
|
||||
|
||||
#Check they are checkgradding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue