cc5e7d00a6696a8cf6e40686455e7e034fbf26ff,testing/test_kerns.py,TestAdd,test_asym,#TestAdd#,308

Before Change



    def test_asym(self):
        with self.test_context() as sess:
            x_free = tf.placeholder("float64")
            [k.make_tf_array(x_free) for k in (self.rbf, self.lin, self.k)]
            X = tf.placeholder("float64")
            Z = tf.placeholder("float64")
            X_data = self.rng.randn(10, 1)
            Z_data = self.rng.randn(12, 1)
            for k in [self.rbf, self.lin, self.k]:
                with k.tf_mode():
                    k._K = sess.run(
                        k.K(X),
                        feed_dict={x_free: k.get_free_state(), X: X_data, Z: Z_data})
            self.assertTrue(np.allclose(self.rbf._K + self.lin._K, self.k._K))


class TestWhite(GPflowTestCase):

After Change


            for k in self.kernels:
                k.compile()
                res.append(k.session.run(k.K(X, Z), feed_dict={X: X_data, Z: Z_data}))
            self.assertTrue(np.allclose(res[0] + res[1], res[2]))


class TestWhite(GPflowTestCase):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

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: TestAdd
Method Name: test_asym


Project Name: tensorflow/agents
Commit Name: 71ec57f993d28f83bea04953cc51365942cb4894
Time: 2020-02-07
Author: summeryue@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testTrainWithNN


Project Name: tensorflow/transform
Commit Name: 15f44153f02f642a973816d912bad07e604d2f6d
Time: 2019-07-09
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/tf_utils_test.py
Class Name: AnalyzersTest
Method Name: test_reduce_batch_coocurrences


Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_fast_affine_transform.py
Class Name:
Method Name: example3


Project Name: tensorlayer/tensorlayer
Commit Name: 910e1e544793c0ca9859a5a4f1c0171104166dc3
Time: 2019-03-10
Author: jingqing.zhang15@imperial.ac.uk
File Name: tests/layers/test_layers_core_basedense_dropout.py
Class Name: Layer_Core_Test
Method Name: test_modellayer