9f6fa2654c3fbe1764cd53a97189ede9b0ebdb92,tests/test_hypersphere.py,TestHypersphere,test_sample_von_mises_fisher,#TestHypersphere#,638

Before Change


        mean_estimate = sum_points / gs.linalg.norm(sum_points)
        expected = mean
        result = mean_estimate
        self.assertTrue(
            gs.allclose(result, expected, atol=MEAN_ESTIMATION_TOL)
        )
        // check concentration parameter for dispersed distribution
        kappa = 1.
        points = sphere.random_von_mises_fisher(kappa, n_points)
        sum_points = gs.sum(points, axis=0)

After Change



        // check mean value for concentrated distribution for different mean
        kappa = 10000000
        mean = sphere.random_uniform()
        points = sphere.random_von_mises_fisher(
            mu=mean, kappa=kappa, n_samples=n_points)
        sum_points = gs.sum(points, axis=0)
        result = sum_points / gs.linalg.norm(sum_points)
        expected = mean
        self.assertAllClose(result, expected, atol=MEAN_ESTIMATION_TOL)

        // check concentration parameter for dispersed distribution
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: geomstats/geomstats
Commit Name: 9f6fa2654c3fbe1764cd53a97189ede9b0ebdb92
Time: 2021-03-31
Author: nicolas.guigui@inria.fr
File Name: tests/test_hypersphere.py
Class Name: TestHypersphere
Method Name: test_sample_von_mises_fisher


Project Name: geomstats/geomstats
Commit Name: 06b918a77ca421131bb52202a34de410e3d249de
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_spd_matrices_space.py
Class Name: TestSPDMatricesSpaceMethods
Method Name: test_random_uniform_and_belongs


Project Name: geomstats/geomstats
Commit Name: c725782bf97203c25032661f1ed6d6b8778fd252
Time: 2020-10-21
Author: nicolas.guigui@inria.fr
File Name: tests/test_pre_shape.py
Class Name: TestPreShapeSpace
Method Name: test_random_uniform


Project Name: geomstats/geomstats
Commit Name: 10d2946443d0cef69741312cc60daa98e01148fd
Time: 2018-12-13
Author: ninamio78@gmail.com
File Name: tests/test_spd_matrices_space.py
Class Name: TestSPDMatricesSpaceMethods
Method Name: test_random_uniform_and_belongs