514c0f359e0176478a55e660edf9642cdc4f44e4,tests/misc_tests/test_conjugate_gradient.py,TestConjugateGradient,_test,#TestConjugateGradient#Any#,34

Before Change



    def _test(self, xp):
        // A must be symmetric and positive-definite
        random_mat = xp.random.normal(size=(self.n, self.n))
        A = random_mat.dot(random_mat.T)
        inv_A = inv_mat(A)
        b = xp.random.normal(size=(self.n,))

After Change



    def _test(self, xp):
        // A must be symmetric and positive-definite
        random_mat = xp.random.normal(size=(self.n, self.n)).astype(self.dtype)
        A = random_mat.dot(random_mat.T)
        inv_A = inv_mat(A)
        b = xp.random.normal(size=(self.n,)).astype(self.dtype)

        def A_product_func(vec):
            self.assertEqual(xp, chainer.cuda.get_array_module(vec))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainerrl
Commit Name: 514c0f359e0176478a55e660edf9642cdc4f44e4
Time: 2018-02-12
Author: muupan@gmail.com
File Name: tests/misc_tests/test_conjugate_gradient.py
Class Name: TestConjugateGradient
Method Name: _test


Project Name: lmcinnes/umap
Commit Name: 964b40fc80a1e20e2adf8c6cfbbac213d6b29f3b
Time: 2018-05-16
Author: leland.mcinnes@gmail.com
File Name: umap/umap_.py
Class Name:
Method Name: simplicial_set_embedding


Project Name: chainer/chainerrl
Commit Name: 514c0f359e0176478a55e660edf9642cdc4f44e4
Time: 2018-02-12
Author: muupan@gmail.com
File Name: tests/misc_tests/test_conjugate_gradient.py
Class Name: TestConjugateGradient
Method Name: _test


Project Name: MorvanZhou/tutorials
Commit Name: 0a23183698773cc364e83565dc7db64485e8ae3e
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf11_build_network/full_code.py
Class Name:
Method Name: