Skip to content

Commit d76fd4c

Browse files
Add XFAIL on test_negative_binomial under float32
This is a regression, likely caused by an updated NumPy/SciPy dependency. Also see #5450
1 parent 4691af7 commit d76fd4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pymc3/tests/test_distributions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,10 @@ def modified_scipy_hypergeom_logcdf(value, N, k, n):
10821082
{"N": NatSmall, "k": NatSmall, "n": NatSmall},
10831083
)
10841084

1085+
@pytest.mark.xfail(
1086+
condition=(theano.config.floatX == "float32"),
1087+
reason="Fails on float32 due to a float casting problem in the logcdf",
1088+
)
10851089
def test_negative_binomial(self):
10861090
def scipy_mu_alpha_logpmf(value, mu, alpha):
10871091
return sp.nbinom.logpmf(value, alpha, 1 - mu / (mu + alpha))

0 commit comments

Comments
 (0)