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.51k stars 7.84k forks source link

Chapter2 -- error in plot_artificial_sms_dataset() function #539

Open joaoppadua opened 2 years ago

joaoppadua commented 2 years ago

Hi, In the TFP version of Chapter 2, the original code of the plot_artificial_smsdataset() function raises an error in evaluating a shape parameter. The error seems to be due to the use of the tau parameter in graph type, i.e., before it is evaluated. Adding the following line after a similar one to evaluate lambdas solved the bug: [ tau ] = evaluate([ tau ]) Hope this helps. Warm wishes, Joao