Closed vladserkoff closed 7 years ago
Thanks! CC @mmargenot
Yeah, that looks like it is due to a more recent change in the package.
Both
lambda_ = pm.math.switch(tau >= idx, lambda_1, lambda_2)
and
import theano.tensor as tt
lambda_ = tt.switch(tau >= idx, lambda_1, lambda_2)
should work.
Closed by #321 .
Thanks!
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?