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
Instead of raising exceptions within the "validate" functions when invalid arguments are used with the distribution functions, the nan value should be returned.
The reasoning behind this decision is to support large scale operations on arrays.
This makes identifying invalid arguments much more difficult, as the current "validate" functions provide detailed descriptions for why the arguments are rejected, so a more effective solution is welcome for discussion.
Instead of raising exceptions within the "validate" functions when invalid arguments are used with the distribution functions, the
nan
value should be returned.The reasoning behind this decision is to support large scale operations on arrays.
This makes identifying invalid arguments much more difficult, as the current "validate" functions provide detailed descriptions for why the arguments are rejected, so a more effective solution is welcome for discussion.
Example "validate" function, where each distribution function has its separate "validate" function:
https://github.com/berkay-yalin/promethium/blob/668cc829dfe48595d1f0672f35aa20d427f48d3b/src/promethium/distributions/binomial.py#L6-L18
The text was updated successfully, but these errors were encountered: