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

Code execution takes too much time #371

Open generall opened 6 years ago

generall commented 6 years ago

Hello, I am trying to execute from Ch2_MorePyMC_PyMC3:

# To be explained in Chapter 3!
with model:
    step = pm.Metropolis(vars=[p])
    trace = pm.sample(40000, step=step)
    burned_trace = trace[15000:]

for the section with cheating detection. But it shows that sampling will take over 20 mins(!) to execute image

My PyMC3 version is 3.2