New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'pymc3' object has no attribute 'switch' #319
Comments
Thanks! CC @mmargenot |
Yeah, that looks like it is due to a more recent change in the package. Both and should work. |
Closed by #321 . |
Thanks! |
ct2034
pushed a commit
to ct2034/Bayesian-Modelling-in-Python
that referenced
this issue
Nov 29, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thanks for the transition to pymc3!
There's probably a typo in the 8th cell in Intro Chapter
Should
lambda_ = pm.switch(tau >= idx, lambda_1, lambda_2)
belambda_ = pm.math.switch(tau >= idx, lambda_1, lambda_2)
instead?The text was updated successfully, but these errors were encountered: