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.67k stars 7.86k forks source link

Fix random() usage in ch2 #357

Closed takatex closed 6 years ago

takatex commented 6 years ago

Hello,

first, many thanks for your good documents.

In 'Ch2_MorePyMC_PyMC3.ipynb', I modified a part of the code from

samples = [lambda_1.random()[0] for i in range(20000)]

to

samples = [lambda_1.random() for i in range(20000)]