65d99e0d41971eb8b362aecc9b9df8ecc6d1ed57,testing/test_priors.py,PriorModeTests,testUniform,#PriorModeTests#,106

Before Change



    def testUniform(self):
        with self.test_context():
            self.m.x = gpflow.Param(1.0)
            self.m.x.prior = gpflow.priors.Uniform(-2., 3.)
            self.m.x.transform = gpflow.transforms.Logistic(-2., 3.)
            self.m.compile()

            self.m.x = np.random.randn(1)[0]

After Change


    def testUniform(self):
        with self.test_context():
            m = self.setup()
            m.x = gpflow.Param(
                1.0, prior=gpflow.priors.Uniform(-2., 3.),
                transform=gpflow.transforms.Logistic(-2., 3.))

            m.compile()
            m.x = np.random.randn(1)[0]
            p1 = m.compute_log_prior()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: GPflow/GPflow
Commit Name: 65d99e0d41971eb8b362aecc9b9df8ecc6d1ed57
Time: 2017-11-06
Author: art.art.v@gmail.com
File Name: testing/test_priors.py
Class Name: PriorModeTests
Method Name: testUniform


Project Name: GPflow/GPflow
Commit Name: 65d99e0d41971eb8b362aecc9b9df8ecc6d1ed57
Time: 2017-11-06
Author: art.art.v@gmail.com
File Name: testing/test_priors.py
Class Name: PriorModeTests
Method Name: testUniform


Project Name: GPflow/GPflow
Commit Name: 65d99e0d41971eb8b362aecc9b9df8ecc6d1ed57
Time: 2017-11-06
Author: art.art.v@gmail.com
File Name: testing/test_priors.py
Class Name: PriorModeTests
Method Name: testLaplaceMode


Project Name: GPflow/GPflow
Commit Name: 65d99e0d41971eb8b362aecc9b9df8ecc6d1ed57
Time: 2017-11-06
Author: art.art.v@gmail.com
File Name: testing/test_priors.py
Class Name: PriorModeTests
Method Name: testBetaMode