mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 00:32:39 +02:00
[py3] print statement
This commit is contained in:
parent
19906edf7d
commit
64517eec18
1 changed files with 1 additions and 2 deletions
|
|
@ -14,10 +14,9 @@ class MiscTests(unittest.TestCase):
|
|||
self.X = np.random.uniform(-3., 3., (self.N, 1))
|
||||
self.Y = np.sin(self.X) + np.random.randn(self.N, self.D) * 0.05
|
||||
self.X_new = np.random.uniform(-3., 3., (self.N_new, 1))
|
||||
|
||||
|
||||
def test_setXY(self):
|
||||
m = GPy.models.GPRegression(self.X, self.Y)
|
||||
print m.X.shape, m.Y.shape
|
||||
m.set_XY(np.vstack([self.X, np.random.rand(1,self.X.shape[1])]), np.vstack([self.Y, np.random.rand(1,self.Y.shape[1])]))
|
||||
m._trigger_params_changed()
|
||||
self.assertTrue(m.checkgrad())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue