0ede18f7755da45e8aafc0844e455a53645d06e8,testing/test_likelihoods.py,TestQuadrature,test_pred_density,#TestQuadrature#,76
Before 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:
if len(x_data):
F1 = theano.function([x], F1)(x_data)
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: keras-team/autokeras
Commit Name: c99295e1903952b3b806c4fd641e28f852b17c36
Time: 2018-04-18
Author: jhfjhfj1@gmail.com
File Name: autokeras/utils.py
Class Name: ModelTrainer
Method Name: train_model
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