cb8762a3100c5f67047843159185059390ee3c6c,geomstats/learning/exponential_barycenter.py,ExponentialBarycenter,fit,#ExponentialBarycenter#Any#Any#Any#,125

Before Change


            Returns self.
        
        if isinstance(self.group, Euclidean):
            mean = linear_mean(points=X, weights=weights)[0]

        // TODO(nguigs): use closed form expression for special euclidean
        //  group as before PR /릱

        else:
            mean = _default_gradient_descent(
                points=X, weights=weights, group=self.group,
                max_iter=self.max_iter,
                epsilon=self.epsilon,
                step=self.step,
                verbose=self.verbose)
        self.estimate_ = mean

        return self

After Change


            Returns self.
        
        if isinstance(self.group, Euclidean):
            mean = linear_mean(points=X, weights=weights)

        // TODO(nguigs): use closed form expression for special euclidean
        //  group as before PR /릱

        else:
            mean = _default_gradient_descent(
                points=X, weights=weights, group=self.group,
                max_iter=self.max_iter,
                epsilon=self.epsilon,
                step=self.step,
                verbose=self.verbose)
        self.estimate_ = mean

        return self
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: cb8762a3100c5f67047843159185059390ee3c6c
Time: 2020-04-16
Author: ninamio78@gmail.com
File Name: geomstats/learning/exponential_barycenter.py
Class Name: ExponentialBarycenter
Method Name: fit


Project Name: geomstats/geomstats
Commit Name: a0d29add820ab6ce09f105c3615ad717b1c83c6e
Time: 2020-04-17
Author: ninamio78@gmail.com
File Name: geomstats/learning/exponential_barycenter.py
Class Name: ExponentialBarycenter
Method Name: fit


Project Name: geomstats/geomstats
Commit Name: 0947bb7119ba0a505a29fcc72e1ba23985217b28
Time: 2020-04-17
Author: ninamio78@gmail.com
File Name: geomstats/learning/exponential_barycenter.py
Class Name: ExponentialBarycenter
Method Name: fit