In my PyMC model there exists a conditional statement within the model. I wish to have the sampler consider the value of a deterministic variable to be valid only when this condition is true.
I believe it used to possible to return i.e.
-np.inf for a draw to be rejected, but this seems to cause some issues with the current version of PyMC. This seems sort of like an anti-pattern anyway.
Any alternatives here?