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 75c52fc commit d9c5309Copy full SHA for d9c5309
pymc/tests/test_distributions_moments.py
@@ -618,13 +618,13 @@ def test_discrete_uniform_moment(lower, upper, size, expected):
618
@pytest.mark.parametrize(
619
"p, size, expected",
620
[
621
- (np.arange(0.1, 0.4, 0.1), None, 3),
622
- (np.arange(0.1, 0.4, 0.1), 5, np.full(5, 3)),
623
- (np.full((2, 4), np.arange(0.1, 0.4, 0.1)), None, [3, 3]),
+ (np.array([0.1, 0.3, 0.6]), None, 2),
+ (np.array([0.6, 0.1, 0.3]), 5, np.full(5, 0)),
+ (np.full((2, 3), np.array([0.6, 0.1, 0.3])), None, [0, 0]),
624
(
625
- np.full((2, 4), np.arange(0.1, 0.4, 0.1)),
+ np.full((2, 3), np.array([0.1, 0.3, 0.6])),
626
(3, 2),
627
- np.full((3, 2), [3, 3]),
+ np.full((3, 2), [2, 2]),
628
),
629
],
630
)
0 commit comments