cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestKernSymmetry,test_1d,#TestKernSymmetry#,219
Before Change
def test_1d(self):
with self.test_context() as sess:
kernels = [K(1) for K in self.kernels]
x_free = tf.placeholder("float64")
[k.make_tf_array(x_free) for k in kernels]
X = tf.placeholder("float64")
X_data = self.rng.randn(10, 1)
for k in kernels:
with k.tf_mode():
After Change
def test_1d(self):
with self.test_context():
kernels = [K(1) for K in self.kernels]
for kernel in kernels:
kernel.compile()
X = tf.placeholder(tf.float64)
X_data = self.rng.randn(10, 1)
for k in kernels:
errors = k.session.run(k.K(X) - k.K(X, X), feed_dict={X: X_data})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances 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: TestKernSymmetry
Method Name: test_1d
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
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: TestKernSymmetry
Method Name: test_5d