98db3c307d617661e33f0f14595f3347fe2fb4ed,testing/test_methods.py,TestMethods,test_predict_density,#TestMethods#,69

Before Change



    def test_predict_density(self):
        self.Ys = self.rng.randn(10, 1)
        for m in self.ms:
            m.compile()
            d = m.predict_density(self.Xs, self.Ys)
            self.assertTrue(d.shape == (10, 1))


class TestSVGP(GPflowTestCase):
    
    The SVGP has four modes of operation. with and without whitening, with and
    without diagonals.

After Change


                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)
            for m in ms:
                m.compile()
                d = m.predict_density(Xs, Ys)
                assert_array_equal(d.shape, (10, 1))


class TestSVGP(GPflowTestCase):
    
    The SVGP has four modes of operation. with and without whitening, with and
    without diagonals.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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_density


Project Name: GPflow/GPflow
Commit Name: 43f740006fb071178e8abb50e34eeee3e48e8fd9
Time: 2017-11-07
Author: art.art.v@gmail.com
File Name: testing/test_param.py
Class Name: TypeTests
Method Name: test_specific_dtype


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