98db3c307d617661e33f0f14595f3347fe2fb4ed,testing/test_methods.py,TestMethods,test_predict_y,#TestMethods#,61
Before Change
mf, vf = m.predict_y(self.Xs)
self.assertTrue(mf.shape == vf.shape)
self.assertTrue(mf.shape == (10, 1))
self.assertTrue(np.all(vf >= 0.0))
def test_predict_density(self):
self.Ys = self.rng.randn(10, 1)
for m in self.ms:
After Change
assert_array_less(np.full_like(vf, -1e-6), vf)
def test_predict_y(self):
with self.test_context():
ms, Xs, _rng = self.setup()
for m in ms:
m.compile()
mf, vf = m.predict_y(Xs)
assert_array_equal(mf.shape, vf.shape)
assert_array_equal(mf.shape, (10, 1))
assert_array_less(np.full_like(vf, -1e-6), vf)
def test_predict_density(self):
with self.test_context():
ms, Xs, rng = self.setup()
Ys = rng.randn(10, 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: GPflow/GPflow
Commit Name: 98db3c307d617661e33f0f14595f3347fe2fb4ed
Time: 2017-10-31
Author: art.art.v@gmail.com
File Name: testing/test_methods.py
Class Name: TestMethods
Method Name: test_predict_y
Project Name: GPflow/GPflow
Commit Name: 98db3c307d617661e33f0f14595f3347fe2fb4ed
Time: 2017-10-31
Author: art.art.v@gmail.com
File Name: testing/test_methods.py
Class Name: TestMethods
Method Name: test_predict_f
Project Name: GPflow/GPflow
Commit Name: 98db3c307d617661e33f0f14595f3347fe2fb4ed
Time: 2017-10-31
Author: art.art.v@gmail.com
File Name: testing/test_methods.py
Class Name: TestMethods
Method Name: test_all