fc54c437e7712fce8606fd797c60d13b94cb8c5f,tests/test_manifold_fixed_rank.py,TestFixedRankEmbeddedManifold,test_proj,#TestFixedRankEmbeddedManifold#,41

Before Change


        u = e.randvec(x)
        A = e.proj(x, u)
        B = u
        for k in xrange(len(A)):
            np_testing.assert_allclose(A[k], B[k])

    def test_norm(self):
        e = self.man
        x = e.rand()
        u = e.randvec(x)

After Change


        u = e.randvec(x)
        A = e.proj(x, u)
        B = u
        diff = [A[k]-B[k] for k in xrange(len(A))]
        np_testing.assert_almost_equal(e.norm(x, diff), 0)

    def test_norm(self):
        e = self.man
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: pymanopt/pymanopt
Commit Name: fc54c437e7712fce8606fd797c60d13b94cb8c5f
Time: 2016-07-28
Author: git@sweichwald.de
File Name: tests/test_manifold_fixed_rank.py
Class Name: TestFixedRankEmbeddedManifold
Method Name: test_proj


Project Name: scikit-learn-contrib/lightning
Commit Name: 36952ae77bf2f2842abaa0deb8545c4c57eaad74
Time: 2014-10-06
Author: manojkumarsivaraj334@gmail.com
File Name: lightning/impl/primal_cd.py
Class Name: CDRegressor
Method Name: fit


Project Name: scikit-learn-contrib/lightning
Commit Name: 382471c62800d7c80673ef22552b6460124ccc2d
Time: 2014-10-06
Author: manojkumarsivaraj334@gmail.com
File Name: lightning/impl/primal_cd.py
Class Name: CDClassifier
Method Name: fit


Project Name: pymanopt/pymanopt
Commit Name: fc54c437e7712fce8606fd797c60d13b94cb8c5f
Time: 2016-07-28
Author: git@sweichwald.de
File Name: tests/test_manifold_fixed_rank.py
Class Name: TestFixedRankEmbeddedManifold
Method Name: test_transp