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

Use theano.tensor.switch instead of pm.switch #325

Closed sebp closed 7 years ago

sebp commented 7 years ago

pm.switch does not exist and is replaced by theano.tensor.switch (same as pm.math.switch) in PyMC3.

Chapter 1 already uses theano's switch.

twiecki commented 7 years ago

Actually these just moved to pymc3.math, can you import switch from there instead?

sebp commented 7 years ago

@twiecki pymc3.math.switch is used in chapters 1 and 2 now.

twiecki commented 7 years ago

Cool, LGTM. CC @CamDavidsonPilon

CamDavidsonPilon commented 7 years ago

👍 thanks for the contribution!