98db3c307d617661e33f0f14595f3347fe2fb4ed,testing/test_methods.py,TestMethods,test_predict_f,#TestMethods#,53
Before Change
mf, vf = m.predict_f(self.Xs)
self.assertTrue(mf.shape == vf.shape)
self.assertTrue(mf.shape == (10, 1))
self.assertTrue(np.all(vf >= 0.0))
def test_predict_y(self):
for m in self.ms:
m.compile()
After Change
m.compile()
def test_predict_f(self):
with self.test_context():
ms, Xs, _rng = self.setup()
for m in ms:
m.compile()
mf, vf = m.predict_f(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_y(self):
with self.test_context():
ms, Xs, _rng = self.setup()
for m in ms:
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_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
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