예제 #1
0
 def test_inverse_transform_spd(self):
     point = SPDMatrices(3).random_uniform(10)
     mean = FrechetMean(metric=SPDMetricAffine(3), point_type='matrix')
     X = mean.fit_transform(X=point)
     result = mean.inverse_transform(X)
     expected = point
     self.assertAllClose(expected, result)
예제 #2
0
 def test_inverse_transform_hyperbolic(self):
     points = self.hyperbolic.random_uniform(10)
     mean = FrechetMean(metric=self.hyperbolic.metric)
     X = mean.fit_transform(X=points)
     result = mean.inverse_transform(X)
     expected = points
     self.assertAllClose(expected, result)