pymc warning: value is neither numerical nor array with floating-point dtype

对着背影说爱祢 提交于 2020-01-02 02:21:31

问题


I have a Bayes net (DAG) model which I created using pymc 2.3. All the variables in it are Bernoulli random variables. When I call the MAP.fit() method on it before sampling I get the following warning for all of my random variables:

value is neither numerical nor array with floating-point dtype. Recommend fitting method fmin (default)

From the github repo of pymc, it seems that this warning is printed if the underlying type of the stochastic variable is not a float. For Bernoulli RV the type is (and should be) bool.

Does this mean that the MAP step will have unstable results?

来源:https://stackoverflow.com/questions/22019472/pymc-warning-value-is-neither-numerical-nor-array-with-floating-point-dtype

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!