d23fc08bab289d4f33b17c4dcc7782b56ee6f7c7,tests/test_hypersphere.py,TestHypersphereMethods,test_mean_and_belongs,#TestHypersphereMethods#,442
Before Change
@geomstats.tests.np_only
def test_mean_and_belongs(self):
point_a = self.space.random_uniform(bound=0.5)
point_b = self.space.random_uniform(bound=0.5)
point_c = self.space.random_uniform(bound=0.5)
result = self.metric.mean([point_a, point_b, point_c])
self.assertTrue(self.space.belongs(result))
After Change
@geomstats.tests.np_only
def test_mean_and_belongs(self):
point_a = gs.array([1., 0., 0., 0., 0.])
point_b = gs.array([0., 1., 0., 0., 0.])
mean = self.metric.mean([point_a, point_b])
result = self.space.belongs(mean)
expected = gs.array([[True]])
self.assertAllClose(result, expected)
def test_diameter(self):
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 7
Instances
Project Name: geomstats/geomstats
Commit Name: d23fc08bab289d4f33b17c4dcc7782b56ee6f7c7
Time: 2018-12-31
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_mean_and_belongs
Project Name: geomstats/geomstats
Commit Name: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_variance
Project Name: geomstats/geomstats
Commit Name: 4c923e64ab490a24e4edbdc5a639f5855b87bd7d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_variance
Project Name: geomstats/geomstats
Commit Name: ba7704839b60556a8d9426d437afc681f814f8da
Time: 2018-09-18
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_intrinsic_and_extrinsic_coords
Project Name: geomstats/geomstats
Commit Name: 7acb7836e62c5e878d29b8aa267b27eee42825ed
Time: 2019-06-16
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_mean_and_belongs
Project Name: geomstats/geomstats
Commit Name: 9cb524ed78749685a3e350e77e374adbaa4bd70d
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_mean
Project Name: geomstats/geomstats
Commit Name: ba7704839b60556a8d9426d437afc681f814f8da
Time: 2018-09-18
Author: ninamio78@gmail.com
File Name: tests/test_hyperbolic_space.py
Class Name: TestHyperbolicSpaceMethods
Method Name: test_intrinsic_and_extrinsic_coords
Project Name: geomstats/geomstats
Commit Name: 4c923e64ab490a24e4edbdc5a639f5855b87bd7d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_mean