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
it would be worth considering a systematic treatment of floating-point related warnings - division by zero and invalid operation pollute output too much - esp whenever obs/exp is involved - classification of float-point errors https://docs.oracle.com/cd/E19957-01/806-3568/ncg_handle.html
consider using (on a per module basis ... or in __init__ or wherever)
# set new err-stated, to hide division by zero warnings_err_state=np.seterr(divide="ignore", over="raise", under="warn", invalid="ignore")
it would be worth considering a systematic treatment of floating-point related warnings - division by zero and invalid operation pollute output too much - esp whenever obs/exp is involved - classification of float-point errors https://docs.oracle.com/cd/E19957-01/806-3568/ncg_handle.html
__init__
or wherever)np.divide
https://numpy.org/doc/stable/reference/generated/numpy.divide.html with thewhere
filter engaged - to pre-emptively fill thoseanything/0.0
withnp.nan
The text was updated successfully, but these errors were encountered: