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
If I use: 1 / (1. + np.exp(-z))
as the inverse, it works fine.
there are a few more places similar to t/(1+t), for example logit deriv2 and negative binomial link
Related: scipy.special has now some new special functions for these kinds of expressions with better corner case behavior. (several changes in scipy.stats benefit currently from improvements.)
Activity
kshedden commentedon Oct 5, 2014
Improvements here would be helpful. I have been working with a Poisson regression in which 40% of the deviance residuals are NaN.
josef-pkt commentedon Oct 5, 2014
About Poisson deviance residuals:
scipy.special got a xlogy function that handles 0*log(0) I don't remember which version it was added.
Poisson.deviance has a specific code for the
endog==0case, but Poisson.resid_dev doesn'tremove custom link since statsmodels#2024 is closed
remove custom link since statsmodels#2024 is closed
remove custom link since statsmodels#2024 is closed