-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Noticed in #4269
________________ TestScalarParameterSamples.test_beta_binomial ________________
self = <pymc3.tests.test_distributions_random.TestScalarParameterSamples object at 0x00000148EA6B0FC8>
def test_beta_binomial(self):
pymc3_random_discrete(
> pm.BetaBinomial, {"n": Nat, "alpha": Rplus, "beta": Rplus}, ref_rand=self._beta_bin
)
pymc3\tests\test_distributions_random.py:718:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pymc3\tests\test_distributions_random.py:100: in pymc3_random_discrete
e = ref_rand(size=size, **pt)
pymc3\tests\test_distributions_random.py:722: in _beta_bin
return st.binom.rvs(n, st.beta.rvs(a=alpha, b=beta, size=size))
C:\Miniconda\envs\pymc3-dev-py37\lib\site-packages\scipy\stats\_distn_infrastructure.py:2997: in rvs
return super(rv_discrete, self).rvs(*args, **kwargs)
C:\Miniconda\envs\pymc3-dev-py37\lib\site-packages\scipy\stats\_distn_infrastructure.py:1004: in rvs
vals = self._rvs(*args, size=size, random_state=random_state)
C:\Miniconda\envs\pymc3-dev-py37\lib\site-packages\scipy\stats\_discrete_distns.py:41: in _rvs
return random_state.binomial(n, p, size)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'
mtrand.pyx:3360: TypeError