2ef49d36a511bcc624720d0963b81226d61cacc1,tests/test_frechet_mean.py,TestFrechetMean,test_mean_hyperbolic,#TestFrechetMean#,84

Before Change


    def test_mean_hyperbolic(self):
        point = gs.array([2., 1., 1., 1.])
        points = gs.array([point, point])
        result = self.metric.mean(points)
        expected = helper.to_vector(point)

        self.assertAllClose(result, expected)

After Change


        point = gs.array([2., 1., 1., 1.])
        points = gs.array([point, point])

        mean = FrechetMean(metric=self.hyperbolic.metric)
        mean.fit(X=points)

        result = mean.mean_
        expected = helper.to_vector(point)

        self.assertAllClose(result, expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: 2ef49d36a511bcc624720d0963b81226d61cacc1
Time: 2020-02-06
Author: ninamio78@gmail.com
File Name: tests/test_frechet_mean.py
Class Name: TestFrechetMean
Method Name: test_mean_hyperbolic


Project Name: geomstats/geomstats
Commit Name: 33c9ba7956c2159de70091c8749673c84b58f604
Time: 2020-02-06
Author: ninamio78@gmail.com
File Name: geomstats/geometry/special_orthogonal.py
Class Name: SpecialOrthogonal
Method Name: exponential_barycenter


Project Name: geomstats/geomstats
Commit Name: 0cd8b74a0da4584575ef86ea84ee489c83d4655c
Time: 2020-02-11
Author: ninamio78@gmail.com
File Name: geomstats/geometry/special_orthogonal.py
Class Name: SpecialOrthogonal
Method Name: exponential_barycenter


Project Name: geomstats/geomstats
Commit Name: 521fa0164b04f7bd4019ba8237c1ef20182f076b
Time: 2020-02-11
Author: ninamio78@gmail.com
File Name: tests/test_frechet_mean.py
Class Name: TestFrechetMean
Method Name: test_mean_hyperbolic