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
sm.GLM(y.astype(float),
sm.add_constant(XYP.astype(float), prepend=True),
family=sm.families.Binomial()).fit()
Traceback (most recent call last):
File "<pyshell#37>", line 3, in
family=sm.families.Binomial()).fit()
File "c:\josef\eclipsegworkspace\statsmodels-josef-experimental-gsoc\scikits\statsmodels\glm.py", line 388, in fit
returned a nan. This could be a boundary problem and should be reported."
ValueError: The first guess on the deviance function returned a nan. This could be a boundary problem and should be reported.
Activity
wesm commentedon Aug 25, 2011
[ LP comment 1 by: joep, on 2010-11-22 14:58:25.160072+00:00 ]
wesm commentedon Aug 25, 2011
[ LP comment 2 by: joep, on 2010-11-25 14:24:11.728436+00:00 ]
see http://bazaar.launchpad.net/~josef-pktd/statsmodels/statsmodels-josef-experimental-gsoc/revision/2194
I added 1e-200 to all instances of a*log(b) that looked like
aandbcould be zero.The test cases of Sol, with either zero successes or zero failures finish now without raising an exception.
I will attach the new test script that also includes now the zero failure case.
The only disadvantage, I can see is that we create an additional temporary array, but that might be unavoidable in any case.
Ready for review