This commit is contained in:
Alan Saul 2014-03-24 10:15:46 +00:00
parent cbf58d4920
commit 9c6abfc270

View file

@ -59,10 +59,9 @@ class MiscTests(unittest.TestCase):
#np.testing.assert_almost_equal(mu_hat, mu)
def test_likelihood_replicate(self):
tol = 1e-5
m = GPy.models.GPRegression(self.X, self.Y)
m2 = GPy.models.GPRegression(self.X, self.Y)
np.testing.assert_equal(m.log_likelihood(), m2.log_likelihood(), tol=tol)
np.testing.assert_equal(m.log_likelihood(), m2.log_likelihood())
m.randomize()
m2[:] = m[''].values()
np.testing.assert_equal(m.log_likelihood(), m2.log_likelihood())