We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6723677 commit 5de4221Copy full SHA for 5de4221
tests/test_pgbart.py
@@ -74,13 +74,13 @@ def test_discrete_uniform():
74
def test_normal_sampler():
75
normal = NormalSampler(2, shape=1)
76
samples = np.array([normal.rvs() for i in range(100000)])
77
- np.testing.assert_almost_equal(samples.mean(), 0, decimal=2)
78
- np.testing.assert_almost_equal(samples.std(), 2, decimal=2)
+ np.testing.assert_almost_equal(samples.mean(), 0, decimal=1)
+ np.testing.assert_almost_equal(samples.std(), 2, decimal=1)
79
80
normal = NormalSampler(2, shape=2)
81
82
- np.testing.assert_almost_equal(samples.mean(0), [0, 0], decimal=2)
83
- np.testing.assert_almost_equal(samples.std(0), [2, 2], decimal=2)
+ np.testing.assert_almost_equal(samples.mean(0), [0, 0], decimal=1)
+ np.testing.assert_almost_equal(samples.std(0), [2, 2], decimal=1)
84
85
86
def test_uniform_sampler():
0 commit comments