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.
Example "validate" function, where each distribution function has its separate "validate" function:
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:
promethium/src/promethium/distributions/binomial.py
Lines 6 to 18 in 668cc82
The text was updated successfully, but these errors were encountered: