49a385eae93032125a6718433b3ca1753aee3b1e,testing/test_method_equivalence.py,TestEquivalence,test_all,#TestEquivalence#,87
Before Change
def test_all(self):
with self.test_context():
likelihoods = np.array([
-m._objective(m.get_free_state())[0].squeeze()
for m in self.models])
self.assertTrue(np.allclose(likelihoods, likelihoods[0], 1e-6))
variances, lengthscales = [], []
for m in self.models:
if hasattr(m.kern, "rbf"):
After Change
for m in self.models[1:]:
mu, var = m.predict_y(self.Xtest)
assert_allclose(mu, mu0, 1e-3)
assert_allclose(var, var0, 1e-4)
class VGPTest(GPflowTestCase):
def test_vgp_vs_svgp(self):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances Project Name: GPflow/GPflow
Commit Name: 49a385eae93032125a6718433b3ca1753aee3b1e
Time: 2017-11-02
Author: art.art.v@gmail.com
File Name: testing/test_method_equivalence.py
Class Name: TestEquivalence
Method Name: test_all
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_asym
Project Name: GPflow/GPflow
Commit Name: 30a5671297517875caacbf6bd03ae1de0d94ec67
Time: 2017-11-01
Author: art.art.v@gmail.com
File Name: testing/test_mean_functions.py
Class Name: TestSwitchedMeanFunction
Method Name: test
Project Name: GPflow/GPflow
Commit Name: d6883d26b557cbeeaceba38643bf5b98819fbed3
Time: 2017-09-26
Author: art.art.v@gmail.com
File Name: testing/test_model.py
Class Name: TestKeyboardCatching
Method Name: test_optimize_np
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_sym