35e6ce06a3ef692f90166999e40a638035bb18b8,tests/test_euclidean_space.py,TestEuclideanSpaceMethods,test_norm_vectorization,#TestEuclideanSpaceMethods#,48

Before Change


        expected = gs.linalg.norm(n_points, axis=1)
        expected = helper.to_scalar(expected)
        gs.testing.assert_allclose(gs.shape(result), (n_samples, 1))
        gs.testing.assert_allclose(result, expected)

    @geomstats.tests.np_only
    def test_exp_vectorization(self):
        n_samples = self.n_samples

After Change


        expected = gs.linalg.norm(n_points, axis=1)
        expected = helper.to_scalar(expected)

        with self.session():
            self.assertAllClose(gs.shape(result), (n_samples, 1))
            self.assertAllClose(result, expected)

    @geomstats.tests.np_only
    def test_exp_vectorization(self):
        n_samples = self.n_samples
        dim = self.dimension
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: geomstats/geomstats
Commit Name: 35e6ce06a3ef692f90166999e40a638035bb18b8
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_euclidean_space.py
Class Name: TestEuclideanSpaceMethods
Method Name: test_norm_vectorization


Project Name: geomstats/geomstats
Commit Name: a82c3b98fdd28245a6b459f3889aa0d4a7500930
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_general_linear_group.py
Class Name: TestGeneralLinearGroupMethods
Method Name: test_group_log_and_exp


Project Name: geomstats/geomstats
Commit Name: 35e6ce06a3ef692f90166999e40a638035bb18b8
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_euclidean_space.py
Class Name: TestEuclideanSpaceMethods
Method Name: test_exp_vectorization


Project Name: geomstats/geomstats
Commit Name: 28a3c9b81eec8abe15b9ea7d5ad926b66d9de833
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_general_linear_group.py
Class Name: TestGeneralLinearGroupMethods
Method Name: test_group_log_and_exp


Project Name: geomstats/geomstats
Commit Name: 35e6ce06a3ef692f90166999e40a638035bb18b8
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_euclidean_space.py
Class Name: TestEuclideanSpaceMethods
Method Name: test_squared_norm_vectorization


Project Name: geomstats/geomstats
Commit Name: cd4341608d7f24b63ff17fdb511b19e09b05d30c
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_euclidean_space.py
Class Name: TestEuclideanSpaceMethods
Method Name: test_random_uniform_and_belongs