193608aed0bec118ce431f8febfe3807ccd16090,testing/test_variational.py,VariationalUnivariateTest,testUnivariateConditionals,#VariationalUnivariateTest#,125
Before Change
for is_diagonal in [True, False]:
for is_whitened in [True, False]:
m = self.get_model(is_diagonal, is_whitened)
free_vars = tf.placeholder(tf.float64)
m.make_tf_array(free_vars)
with m.tf_mode():
if is_whitened:
fmean_func, fvar_func = gpflow.conditionals.conditional(
self.X, self.Z, m.kern, m.q_mu, q_sqrt=m.q_sqrt)
After Change
mean_value = fmean_func.eval(session=sess)[0, 0]
var_value = fvar_func.eval(session=sess)[0, 0]
assert_allclose(mean_value - self.posteriorMean, 0, atol=4)
assert_allclose(var_value - self.posteriorVariance, 0, atol=4)
class VariationalMultivariateTest(GPflowTestCase):
def setUp(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: GPflow/GPflow
Commit Name: 193608aed0bec118ce431f8febfe3807ccd16090
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_variational.py
Class Name: VariationalUnivariateTest
Method Name: testUnivariateConditionals
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_asym
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_sym