126664f626f28f20e9f460c1cf5f6bf4643ce096,testing/test_data_object.py,TestDataHolderModels,test_sgpmc,#TestDataHolderModels#,144

Before Change


    def test_sgpmc(self):
        with self.test_context():
            m = gpflow.models.SGPMC(
                self.X, self.Y, self.kern,
                likelihood=gpflow.likelihoods.StudentT(),
                Z=self.X[::2])
            m.compile()
            m.X = self.rng.randn(*self.X.shape)
            self.assertFalse(
                m._needs_recompile,
                msg="Recompilation should be avoided for the same shape data")

            m.X = self.rng.randn(30, 1)

            self.assertFalse(
                m._needs_recompile,

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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

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_sgpr


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