-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
InverseGamma logcdf method fails with invalid parameters when array is used #4340
Comments
ricardoV94
changed the title
InverseGamma logcdf method fails with invalid parameters when multiple values are being evaluated
InverseGamma logcdf method fails with invalid parameters when array of values is used
Dec 14, 2020
ricardoV94
changed the title
InverseGamma logcdf method fails with invalid parameters when array of values is used
InverseGamma logcdf method fails with invalid parameters when array is used
Dec 14, 2020
Same issue occurs with the Gamma distribution |
This was referenced Dec 27, 2020
Fixed by #4393. Fix can be reverted once this Theano issue is fixed: aesara-devs/aesara#224 In the meantime feel free to close this issue. |
Thanks @ricardoV94 for the deep dive into this! |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The theano.tensor function
gammaincc
fails with aC code
assertion that exits the process, when called with negative arguments. This function is now being called in the logcdf method of the InverseGamma distribution (and after #4331, in the logcdf of the Poisson distribution).Using
bound
avoids the exception when a single value is evaluated. However, it fails when an array/tensor with one or multiple values is used, sincebound
is not lazy.Should we be concerned about this? From the docstrings, it seems that all logcdf methods are intended to work with both scalars and arrays/tensors values.
Error message:
The text was updated successfully, but these errors were encountered: