You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In working in #4393 and #4387 I realized that several logcdf methods for continuous distributions do not adequately check for invalid parameters and can return either nan or wrong results. If there is an interest, I am willing to do a new PR to fix those as well as to extend the check_logcdf to automatically test that -inf is returned for invalid parameters (i.e., outside the supported range).
This and the changes included in #4393 could also be used in check_logp to test that the logp is also correctly handling invalid values / parameters. I would be surprised to find issues in current implementations, given that every logp return seems to be wrapped in bound, but it could still be helpful for people developing new distributions or refactoring old ones...
The text was updated successfully, but these errors were encountered:
In working in #4393 and #4387 I realized that several
logcdf
methods for continuous distributions do not adequately check for invalid parameters and can return eithernan
or wrong results. If there is an interest, I am willing to do a new PR to fix those as well as to extend thecheck_logcdf
to automatically test that-inf
is returned for invalid parameters (i.e., outside the supported range).Here are some currently failing examples:
This and the changes included in #4393 could also be used in
check_logp
to test that the logp is also correctly handling invalid values / parameters. I would be surprised to find issues in current implementations, given that everylogp
return seems to be wrapped inbound
, but it could still be helpful for people developing new distributions or refactoring old ones...The text was updated successfully, but these errors were encountered: