53753337fc53532e2c35ed70c49fef23aa0510f4,tests/test_special_orthogonal_group.py,TestSpecialOrthogonalGroupMethods,test_group_exp_then_log,#TestSpecialOrthogonalGroupMethods#,514
Before Change
expected, self.group.regularize(expected)))
if np.allclose(result, inv_expected):
if np.linalg.norm(inv_expected - expected) > 1e-5:
logging.warning("Test group_exp_then_log passed only "
" w. the assumption:\n"
" rotvec = -rotvec "
"for a point {} "
"and base_point {}.".format(
angle_type,
angle_type_base))
def test_group_log_then_exp(self):
This tests that the composition of
log and exp gives identity.
After Change
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),
"\n- on point {}: {} -> {}\n"
"- base_point {}: {} -> {}\n"
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
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_group_exp_then_log
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: e4a937ea1d0e7dce309a1a3f19d91032aca62781
Time: 2018-04-12
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp_basis
Project Name: geomstats/geomstats
Commit Name: 0f0356a2e8265f24fd89bf95a809b9a8bb93dede
Time: 2018-04-12
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp_basis