126664f626f28f20e9f460c1cf5f6bf4643ce096,testing/test_data_object.py,TestDataHolderModels,test_sgpmc,#TestDataHolderModels#,144
Before Change
m.X = self.rng.randn(30, 1)
self.assertFalse(
m._needs_recompile,
msg="Recompilation should not be necessary for different shape data")
def test_svgp(self):
with self.test_context():
m = gpflow.models.SVGP(
After Change
def test_sgpmc(self):
with self.test_context():
X, Y, kern, rng = self.setup()
m = gpflow.models.SGPMC(X, Y, kern, likelihood=gpflow.likelihoods.StudentT(), Z=X[::2])
m.compile()
m.X = rng.randn(*X.shape)
with self.assertRaises(gpflow.GPflowError):
m.X = rng.randn(30, 1)
def test_svgp(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_sgpmc
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_sgpmc
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_gpr
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_svgp
Project Name: GPflow/GPflow
Commit Name: 126664f626f28f20e9f460c1cf5f6bf4643ce096
Time: 2017-10-30
Author: art.art.v@gmail.com
File Name: testing/test_data_object.py
Class Name: TestDataHolderModels
Method Name: test_sgpr