-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Simplify wald logcdf method #4496
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
Conversation
pymc3/distributions/continuous.py
Outdated
return bound( | ||
tt.switch( | ||
~(right_limit | degenerate_dist), | ||
a + tt.log1p(tt.exp(b - a)), | ||
tt.lt(value, np.inf), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example pm.Wald.dist(mu=1, lam=1).logcdf(1e310)
, will return 0 instead of nan
this way. This behavior seems in line with other distributions I tested.
LGTM! Hang on a second, I resolved a conflict in the web browser but missed the |
Thanks! |
Thanks @ricardoV94! |
Hmm we get a failed test: which still succeeded before the theano > aesara rename, and which also succeeds on my local |
OK on |
Thanks for checking. Will keep an eye on future runs to see if it ever reemerges |
Closes #4436