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
I think it is safe to use pinv instead of inv in the newton iteration
method='bfgs' finishes without problems
>>> print sm.Logit(endog, exog.astype(float)).fit().summary()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\discrete\discrete_model.py", line 1186, in fit
disp=disp, callback=callback, **kwargs)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\discrete\discrete_model.py", line 164, in fit
disp=disp, callback=callback, **kwargs)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\base\model.py", line 357, in fit
hess=hess)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new2\statsmodels\statsmodels\base\model.py", line 405, in _fit_mle_newton
newparams = oldparams - np.dot(np.linalg.inv(H),
File "C:\Python26\lib\site-packages\numpy\linalg\linalg.py", line 445, in inv
return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))
File "C:\Python26\lib\site-packages\numpy\linalg\linalg.py", line 328, in solve
raise LinAlgError, 'Singular matrix'
numpy.linalg.linalg.LinAlgError: Singular matrix
Activity
REF: _fit_newton add Ridge correction to Hessian, see also statsmodel…
REF: _fit_newton add Ridge correction to Hessian, see also statsmodel…
Merge commit 'v0.5.0-1189-g48f7a21' into releases
Merge branch 'releases' into debian-experimental