mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-12 05:22:38 +02:00
tests are now passing
This commit is contained in:
parent
362389781b
commit
edae1032c7
11 changed files with 38 additions and 34 deletions
|
|
@ -171,7 +171,7 @@ class GradientTests(unittest.TestCase):
|
|||
kernel = GPy.kern.rbf(1)
|
||||
distribution = GPy.likelihoods.likelihood_functions.probit()
|
||||
likelihood = GPy.likelihoods.EP(Y, distribution)
|
||||
m = GPy.models.GP(X, likelihood, kernel)
|
||||
m = GPy.core.GP(X, likelihood, kernel)
|
||||
m.ensure_default_constraints()
|
||||
m.update_likelihood_approximation()
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
|
@ -185,7 +185,7 @@ class GradientTests(unittest.TestCase):
|
|||
kernel = GPy.kern.rbf(1)
|
||||
distribution = GPy.likelihoods.likelihood_functions.probit()
|
||||
likelihood = GPy.likelihoods.EP(Y, distribution)
|
||||
m = GPy.models.sparse_GP(X, likelihood, kernel,Z)
|
||||
m = GPy.core.sparse_GP(X, likelihood, kernel,Z)
|
||||
m.ensure_default_constraints()
|
||||
m.update_likelihood_approximation()
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue