9cb524ed78749685a3e350e77e374adbaa4bd70d,tests/test_hypersphere.py,TestHypersphereMethods,test_log_vectorization,#TestHypersphereMethods#,210

Before Change



        result = self.metric.log(one_point, one_base_point)
        point_numpy = np.random.uniform(size=(1, dim))
        with self.session():
            // TODO(nina): Fix that this test fails with assertShapeEqual
            self.assertAllClose(point_numpy.shape, gs.shape(result))

        result = self.metric.log(n_points, one_base_point)
        point_numpy = np.random.uniform(size=(n_samples, dim))
        with self.session():
            self.assertShapeEqual(point_numpy, result)

        result = self.metric.log(one_point, n_base_points)
        point_numpy = np.random.uniform(size=(n_samples, dim))
        with self.session():
            self.assertShapeEqual(point_numpy, result)

        result = self.metric.log(n_points, n_base_points)
        point_numpy = np.random.uniform(size=(n_samples, dim))
        with self.session():
            self.assertShapeEqual(point_numpy, result)

    def test_exp_and_log_and_projection_to_tangent_space_general_case(self):
        
        Test that the riemannian exponential
        and the riemannian logarithm are inverse.

After Change


        self.assertAllClose(gs.shape(result), (n_samples, dim))

        result = self.metric.log(n_points, n_base_points)
        self.assertAllClose(gs.shape(result), (n_samples, dim))

    def test_exp_and_log_and_projection_to_tangent_space_general_case(self):
        
        Test that the riemannian exponential
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: geomstats/geomstats
Commit Name: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_log_vectorization


Project Name: geomstats/geomstats
Commit Name: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_exp_vectorization


Project Name: geomstats/geomstats
Commit Name: 4c923e64ab490a24e4edbdc5a639f5855b87bd7d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_exp_vectorization


Project Name: geomstats/geomstats
Commit Name: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_log_vectorization


Project Name: geomstats/geomstats
Commit Name: 4c923e64ab490a24e4edbdc5a639f5855b87bd7d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_log_vectorization