d496aaefc795e176b615815e9f30f335860f013b,geomstats/lie_group.py,LieGroup,group_exp,#LieGroup#Any#Any#,48

Before Change


        if base_point is None:
            return self.group_exp(tangent_vec, self.identity)
        else:
            raise NotImplementedError(
                "The group exponential is not implemented.")

    def group_log(self, point, base_point=None):
        
        Compute the group logarithm at point base_point

After Change


            group_exp = self.group_exp_from_identity(tangent_vec)
        else:

            jacobian = self.jacobian_translation(point=base_point,
                                                 left_or_right="left")
            inv_jacobian = np.linalg.inv(jacobian)

            tangent_vec_at_identity = np.dot(inv_jacobian, tangent_vec)
            group_exp_from_identity = self.group_exp_from_identity(
                                           tangent_vec=tangent_vec_at_identity)

            group_exp = self.compose(base_point,
                                     group_exp_from_identity)
        group_exp = self.regularize(group_exp)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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: d496aaefc795e176b615815e9f30f335860f013b
Time: 2018-01-22
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_log


Project Name: LxMLS/lxmls-toolkit
Commit Name: 18cd9a060bd9328cb64587048047a2b95438d2e6
Time: 2016-06-28
Author: ramon@astudillo.com
File Name: lxmls/deep_learning/rnn.py
Class Name: RNN
Method Name: _forward