CamDavidsonPilon / Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/
MIT License
26.55k stars 7.85k forks source link

Change lambda value to float type for Exponential #373

Closed CloudandML closed 6 years ago

CloudandML commented 6 years ago

Initially, ' Integers to negative integer powers are not allowed.' error would appear when I run the Exponential model. I read the doc file, and it says lam accepts float type only.

I am not sure whether it is the python version issue or pymc3 version issue. Just want to point out the error and the way to fix it on my particular case.