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

Chapter 2: deterministic variable name fixed #486

Open a-n-ermakov opened 4 years ago

linbug commented 3 years ago

This confused me today too. I'd suggest removing this line entirely as it seems to have been copied from the PyMC2 version of Ch2, where a function is actually being declared:

@pm.deterministic
def some_deterministic_var(v1=v1,):
     #jelly goes here.

For all purposes, we can treat the object some_deterministic_var as a variable and not a Python function.

However same the sentence doesn't make sense for PyMC3.