a3175090bbbeca4c3daa1cd9230b8f01c068f94a,tests/test_special_euclidean_group.py,TestSpecialEuclideanGroupMethods,test_inner_product_at_identity_vectorization,#TestSpecialEuclideanGroupMethods#,1283

Before Change


            n_vector_b = self.group.random_uniform(n_samples=n_samples)

            result = metric.inner_product(one_vector_a, n_vector_b)
            expected = gs.vstack([metric.inner_product(one_vector_a, vec_b)
                                  for vec_b in n_vector_b])
            gs.testing.assert_allclose(result, expected)

            result = metric.inner_product(n_vector_a, one_vector_b)
            expected = gs.vstack([metric.inner_product(vec_a, one_vector_b)
                                  for vec_a in n_vector_a])
            gs.testing.assert_allclose(result, expected)

            result = metric.inner_product(n_vector_a, n_vector_b)
            expected = gs.vstack([metric.inner_product(vec_a, vec_b)
                                  for vec_a, vec_b in zip(n_vector_a,
                                                          n_vector_b)])
            gs.testing.assert_allclose(result, expected)

    @geomstats.tests.np_only
    def test_inner_product_one_base_point_vectorization(self):

After Change


            n_vector_b = self.group.random_uniform(n_samples=n_samples)

            result = metric.inner_product(one_vector_a, n_vector_b)
            self.assertAllClose(gs.shape(result), (n_samples, 1))

            result = metric.inner_product(n_vector_a, one_vector_b)
            self.assertAllClose(gs.shape(result), (n_samples, 1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 21

Instances


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_inner_product_at_identity_vectorization


Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_exp_vectorization


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_inner_product_one_base_point_vectorization


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_inner_product_at_identity_vectorization


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_exp_vectorization


Project Name: geomstats/geomstats
Commit Name: a3175090bbbeca4c3daa1cd9230b8f01c068f94a
Time: 2018-12-28
Author: ninamio78@gmail.com
File Name: tests/test_special_euclidean_group.py
Class Name: TestSpecialEuclideanGroupMethods
Method Name: test_log_vectorization


Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_log_vectorization