4c923e64ab490a24e4edbdc5a639f5855b87bd7d,tests/test_hypersphere.py,TestHypersphereMethods,test_log_vectorization,#TestHypersphereMethods#,210

Before Change


        n_base_points = self.space.random_uniform(n_samples=n_samples)

        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):

After Change


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

        result = self.metric.log(one_point, n_base_points)
        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))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 17

Instances


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


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


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: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_exp_vectorization