Designing a simple Binomial distribution throws core dump in pymc

梦想的初衷 提交于 2019-12-07 03:32:26

I think that this is a bug (here is a link to the issue you opened, thanks!).

Here is a work around you can use for now: instead of the creating observations as you have done above, use n and p arguments which have dimension matching data:

observations = Binomial("obs", 5*np.ones_like(data),
                        p*np.ones_like(data), value=data,observed=True)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!