35364f3d1dc129e68d8f5da1cf1d090073e4b556,unittests.py,TestGeomstatsMethods,test_rigid_transformations_group_exp_log,#TestGeomstatsMethods#,124

Before Change


            (x_expected, r_expected) = (x, r)

            self.assertTrue(np.allclose(x_result, x_expected))
            self.assertTrue(np.allclose(r_result, r_expected))

    def test_rotations_riemannian_exp_log(self):
        r_ref = rotations.regularize_rotation_vector(np.array([-1, 3, 6]))
        r1 = np.pi / (3 * np.sqrt(2)) * np.array([0, 0, 0])

After Change



        translation_2 = np.array([4, 0, 0])
        rot_vec_2 = np.pi / (2 * np.sqrt(3)) * np.array([1, 0, 0])
        transfo_2 = np.concatenate([rot_vec_2, translation_2])

        translation_3 = np.array([1.2, -3.6, 50])
        rot_vec_3 = np.pi / (2 * np.sqrt(3)) * np.array([1, -20, 50])
        transfo_3 = np.concatenate([rot_vec_3, translation_3])

        translation_4 = np.array([4, 10, -2])
        rot_vec_4 = (np.pi / (2 * np.sqrt(3)) *
                     np.array([6 * 1e-8, 5.5 * 1e-7, -2 * 1e-6]))
        transfo_4 = np.concatenate([rot_vec_4, translation_4])

        all_transfos = [transfo_1, transfo_2, transfo_3, transfo_4]
        for transfo in all_transfos:
            gp_log = rigid_transformations.group_log(transfo)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: 35364f3d1dc129e68d8f5da1cf1d090073e4b556
Time: 2017-10-25
Author: ninamio78@gmail.com
File Name: unittests.py
Class Name: TestGeomstatsMethods
Method Name: test_rigid_transformations_group_exp_log


Project Name: geomstats/geomstats
Commit Name: 35364f3d1dc129e68d8f5da1cf1d090073e4b556
Time: 2017-10-25
Author: ninamio78@gmail.com
File Name: unittests.py
Class Name: TestGeomstatsMethods
Method Name: test_rigid_transformations_group_exp_log


Project Name: geomstats/geomstats
Commit Name: 35364f3d1dc129e68d8f5da1cf1d090073e4b556
Time: 2017-10-25
Author: ninamio78@gmail.com
File Name: unittests.py
Class Name: TestGeomstatsMethods
Method Name: test_rigid_transformations_riemannian_exp_log


Project Name: arviz-devs/arviz
Commit Name: 5d70084dbb40e5498b803331ad455b9bfc9ab81b
Time: 2018-09-20
Author: ahartikainen@users.noreply.github.com
File Name: arviz/tests/test_plot_utils.py
Class Name:
Method Name: test_dataset_to_numpy_not_combined


Project Name: SPFlow/SPFlow
Commit Name: b6708055bae21905af8a6e8394fbc1c01400ab8d
Time: 2018-07-24
Author: xiaoting.shao@tu-dortmund.de
File Name: src/spn/structure/leaves/conditional/MLE.py
Class Name:
Method Name: