4be9400d3fcdf22592f87969e281490ae51555b2,testing/test_conditionals.py,DiagsTest,test_nonwhiten,#DiagsTest#,65

Before Change


            self.assertTrue(np.allclose(var_diff, 0))

    def test_nonwhiten(self):
        with self.test_context() as sess, self.k.tf_mode():
            Fstar_mean_1, Fstar_var_1 = gpflow.conditionals.gaussian_gp_predict(
                self.Xs, self.X, self.k, self.mu, self.sqrt, self.num_latent)
            Fstar_mean_2, Fstar_var_2 = gpflow.conditionals.gaussian_gp_predict(
                self.Xs, self.X, self.k, self.mu, self.chol, self.num_latent)

            mean_diff = sess.run(Fstar_mean_1 - Fstar_mean_2, feed_dict=self.feed_dict)
            var_diff = sess.run(Fstar_var_1 - Fstar_var_2, feed_dict=self.feed_dict)

            self.assertTrue(np.allclose(mean_diff, 0))
            self.assertTrue(np.allclose(var_diff, 0))


class WhitenTest(GPflowTestCase):
    def setUp(self):

After Change


            // assert_allclose(mean_diff, 0.0)
            // assert_allclose(var_diff, 0.0)

    def test_nonwhiten(self):
        with self.test_context() as sess:
            Xs, X, k, mu, sqrt, chol, feed_dict = self.setup()

            Fstar_mean_1, Fstar_var_1 = gpflow.conditionals.conditional(
                Xs, X, k, mu, q_sqrt=sqrt)
            Fstar_mean_2, Fstar_var_2 = gpflow.conditionals.conditional(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 20

Instances


Project Name: GPflow/GPflow
Commit Name: 4be9400d3fcdf22592f87969e281490ae51555b2
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_conditionals.py
Class Name: DiagsTest
Method Name: test_nonwhiten


Project Name: GPflow/GPflow
Commit Name: 4be9400d3fcdf22592f87969e281490ae51555b2
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_conditionals.py
Class Name: DiagsTest
Method Name: test_whiten


Project Name: GPflow/GPflow
Commit Name: 4be9400d3fcdf22592f87969e281490ae51555b2
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_conditionals.py
Class Name: WhitenTest
Method Name: test_whiten