mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-12 13:32:39 +02:00
added GPy.tests(), removed some useless tests
This commit is contained in:
parent
2b7f0999bc
commit
e32afa11e5
5 changed files with 11 additions and 17 deletions
|
|
@ -177,17 +177,6 @@ class GradientTests(unittest.TestCase):
|
|||
m.approximate_likelihood()
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
||||
def test_warped_GP(self):
|
||||
xmin, xmax = 1, 2.5*np.pi
|
||||
b, C, SNR = 1, 0, 0.1
|
||||
X = np.linspace(xmin, xmax, 500)
|
||||
y = b*X + C + 1*np.sin(X)
|
||||
y += 0.05*np.random.randn(len(X))
|
||||
X, y = X[:, None], y[:, None]
|
||||
m = GPy.models.warpedGP(X, y, warping_terms = 3)
|
||||
m.constrain_positive('(tanh_a|tanh_b|rbf|white|bias)')
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print "Running unit tests, please be (very) patient..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue