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

Ch1_Introduction_PyMC3.ipynb #400

Open Chetanbuye12 opened 5 years ago

Chetanbuye12 commented 5 years ago

While using this piece of code !!!

Mysterious code to be explained in Chapter 3.

with model: step = pm.Metropolis() trace = pm.sample(10000, tune=5000,step=step)

Gives an error !! ValueError: must use protocol 4 or greater to copy this object; since __getnewargs_ex__ returned keyword arguments.

I am using!! Python 3.5.6 pymc3 3.5