Created
April 19, 2018 17:54
-
-
Save tmountain/8521a799813f29d287ce8c91f3b5829b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/lib/python2.7/site-packages/statsmodels/compat/pandas.py:56: FutureWarning: The pandas.core.datetools module is deprecated and will be removed in a future version. Please use the pandas.tseries module instead. | |
from pandas.core import datetools | |
/usr/local/lib/python2.7/site-packages/statsmodels/discrete/discrete_model.py:1214: RuntimeWarning: overflow encountered in exp | |
return 1/(1+np.exp(-X)) | |
/usr/local/lib/python2.7/site-packages/statsmodels/discrete/discrete_model.py:1264: RuntimeWarning: divide by zero encountered in log | |
return np.sum(np.log(self.cdf(q*np.dot(X,params)))) | |
Warning: Maximum number of iterations has been exceeded. | |
Current function value: inf | |
Iterations: 35 | |
Traceback (most recent call last): | |
File "regress_original.py", line 11, in <module> | |
answer = logReg.fit() | |
File "/usr/local/lib/python2.7/site-packages/statsmodels/discrete/discrete_model.py", line 1377, in fit | |
disp=disp, callback=callback, **kwargs) | |
File "/usr/local/lib/python2.7/site-packages/statsmodels/discrete/discrete_model.py", line 204, in fit | |
disp=disp, callback=callback, **kwargs) | |
File "/usr/local/lib/python2.7/site-packages/statsmodels/base/model.py", line 458, in fit | |
Hinv = np.linalg.inv(-retvals['Hessian']) / nobs | |
File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 513, in inv | |
ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj) | |
File "/usr/local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 90, in _raise_linalgerror_singular | |
raise LinAlgError("Singular matrix") | |
numpy.linalg.linalg.LinAlgError: Singular matrix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment