d1f932a01a3a2d73167dea9be55ffae747d1b66b,astroML/stats/tests/test_stats.py,,test_mean_sigma,#,24

Before Change


        a = np.random.random(shape)
        for axis in (None, 0):
            for ddof in (0, 1):
                yield (check_mean_sigma, a, axis, ddof)


//---------------------------------------------------------------------------
// Check that the keepdims argument works as expected

After Change


                             ddof=ddof)

    mu2 = np.mean(a, axis=axis)
    sigma2 = np.std(a, axis=axis, ddof=ddof)

    assert_array_almost_equal(mu1, mu2)
    assert_array_almost_equal(sigma1, sigma2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: astroML/astroML
Commit Name: d1f932a01a3a2d73167dea9be55ffae747d1b66b
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/stats/tests/test_stats.py
Class Name:
Method Name: test_mean_sigma


Project Name: neurodsp-tools/neurodsp
Commit Name: 441bab4b2277333e58823c0159206644c0b4eee9
Time: 2019-03-22
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/utils.py
Class Name:
Method Name: normalize_variance


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 3735a6f690676bf2ab29f57ca1a02c1c63565b6c
Time: 2018-02-20
Author: max.lapan@gmail.com
File Name: ch16/02_breakout_es.py
Class Name:
Method Name: