0ede18f7755da45e8aafc0844e455a53645d06e8,testing/test_likelihoods.py,TestQuadrature,test_pred_density,#TestQuadrature#,76
Before Change
F2 = theano.function([x], F2)(x_data)
else:
F1 = theano.function([], F1)()
F2 = theano.function([], F2)()
self.failUnless(np.allclose(F1, F2, 1e-6, 1e-6))
After Change
F1 = l.predict_density(self.Fmu, self.Fvar, self.Y)
F2 = GPflow.likelihoods.Likelihood.predict_density(l, self.Fmu, self.Fvar, self.Y)
//compile and run the functions:
F1 = tf.Session().run(F1, feed_dict={x: x_data})
F2 = tf.Session().run(F2, feed_dict={x: x_data})
self.failUnless(np.allclose(F1, F2, 1e-6, 1e-6))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: GPflow/GPflow
Commit Name: 0ede18f7755da45e8aafc0844e455a53645d06e8
Time: 2016-01-17
Author: james.hensman@gmail.com
File Name: testing/test_likelihoods.py
Class Name: TestQuadrature
Method Name: test_pred_density
Project Name: GPflow/GPflow
Commit Name: 0ede18f7755da45e8aafc0844e455a53645d06e8
Time: 2016-01-17
Author: james.hensman@gmail.com
File Name: testing/test_likelihoods.py
Class Name: TestQuadrature
Method Name: test_var_exp
Project Name: GPflow/GPflow
Commit Name: b4da4d91f00e2b09550cb73659d53834bd180ce0
Time: 2016-01-17
Author: james.hensman@gmail.com
File Name: testing/test_transforms.py
Class Name: TransformTests
Method Name: test_tf_np_forward