9997c504c74bc973564e76fb9f4f4e129ccfe542,astroML/density_estimation/tests/test_xdeconv.py,,test_single_gaussian,#,44
Before Change
def test_single_gaussian(N=100, sigma=0.1):
for D in (1, 2, 3):
yield (check_single_gaussian, N, D, sigma)
After Change
X += np.random.normal(0, sigma, X.shape)
xdgmm = XDGMM(1)
xdgmm.fit(X, Xerr)
// because of sample variance, results will be similar
// but not identical. We"ll use a fudge factor of 0.1
assert_allclose(mu, xdgmm.mu[0], atol=0.1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: astroML/astroML
Commit Name: 9997c504c74bc973564e76fb9f4f4e129ccfe542
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/tests/test_xdeconv.py
Class Name:
Method Name: test_single_gaussian
Project Name: astroML/astroML
Commit Name: 9997c504c74bc973564e76fb9f4f4e129ccfe542
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/tests/test_density.py
Class Name:
Method Name: test_1D_density
Project Name: alexandrebarachant/pyRiemann
Commit Name: 9302d6f56cb836b95e357ed533a3d3aaed4f4016
Time: 2015-05-16
Author: alexandre.barachant@gmail.com
File Name: pyriemann/channelselection.py
Class Name: ElectrodeSelection
Method Name: fit