Merge branch 'devel' into gradientsxx

This commit is contained in:
Max Zwiessele 2016-06-06 10:50:34 +01:00
commit 4e833a4f3a
13 changed files with 1570 additions and 41 deletions

View file

@ -24,9 +24,9 @@ class Test(unittest.TestCase):
k = GPy.kern.RBF(1)
m = GPy.models.BayesianGPLVM(self.Y, 1, kernel=k)
mu, var = m.predict(m.X)
X = m.X.copy()
X = m.X
Xnew = NormalPosterior(m.X.mean[:10].copy(), m.X.variance[:10].copy())
m.set_XY(Xnew, m.Y[:10])
m.set_XY(Xnew, m.Y[:10].copy())
assert(m.checkgrad())
m.set_XY(X, self.Y)
mu2, var2 = m.predict(m.X)
@ -40,7 +40,7 @@ class Test(unittest.TestCase):
mu, var = m.predict(m.X)
X = m.X.copy()
Xnew = X[:10].copy()
m.set_XY(Xnew, m.Y[:10])
m.set_XY(Xnew, m.Y[:10].copy())
assert(m.checkgrad())
m.set_XY(X, self.Y)
mu2, var2 = m.predict(m.X)