53753337fc53532e2c35ed70c49fef23aa0510f4,tests/test_special_orthogonal_group.py,TestSpecialOrthogonalGroupMethods,test_exp_then_log,#TestSpecialOrthogonalGroupMethods#,380

Before Change



        for metric_type in self.metrics.keys():
            for angle_type in self.points.keys():
                if angle_type == "with_angle_pi":
                    continue
                for angle_type_base in self.points.keys():
                    if angle_type_base == "with_angle_pi":
                        continue

After Change


                    result = helper.exp_then_log(metric=metric,
                                                 tangent_vec=tangent_vec,
                                                 base_point=base_point)
                    jacobian = self.group.jacobian_translation(
                                                          point=base_point,
                                                          left_or_right="left")
                    tangent_vec_at_id = np.dot(np.linalg.inv(jacobian),
                                               tangent_vec)
                    tangent_vec_at_id = self.group.regularize(
                                                        tangent_vec_at_id)
                    expected = np.dot(jacobian, tangent_vec_at_id)

                    self.assertTrue(np.allclose(result, expected, atol=1e-6),
                                    "\nmetric {}:\n"
                                    "- on point {}: {} -> {}\n"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: geomstats/geomstats
Commit Name: 53753337fc53532e2c35ed70c49fef23aa0510f4
Time: 2018-01-28
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_exp_then_log


Project Name: geomstats/geomstats
Commit Name: d496aaefc795e176b615815e9f30f335860f013b
Time: 2018-01-22
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_exp


Project Name: geomstats/geomstats
Commit Name: 53753337fc53532e2c35ed70c49fef23aa0510f4
Time: 2018-01-28
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_group_exp_then_log