Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

analyzer error #45

Closed
patrickshan opened this issue Aug 29, 2013 · 2 comments
Closed

analyzer error #45

patrickshan opened this issue Aug 29, 2013 · 2 comments

Comments

@patrickshan
Copy link

ERROR:root:Algorithm error: Traceback (most recent call last):
File "/opt/skyline/src/analyzer/algorithms.py", line 233, in run_selected_algorithm
ensemble = [globals()algorithm for algorithm in ALGORITHMS]
File "/opt/skyline/src/analyzer/algorithms.py", line 205, in ks_test
adf = sm.tsa.stattools.adfuller(reference, 10)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/stattools.py", line 201, in adfuller
xdall = lagmat(xdiff[:,None], maxlag, trim='both', original='in')
File "/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/tsatools.py", line 305, in lagmat
raise ValueError("maxlag should be < nobs")
ValueError: maxlag should be < nobs

ERROR:root:Algorithm error: Traceback (most recent call last):
File "/opt/skyline/src/analyzer/algorithms.py", line 233, in run_selected_algorithm
ensemble = [globals()algorithm for algorithm in ALGORITHMS]
File "/opt/skyline/src/analyzer/algorithms.py", line 205, in ks_test
adf = sm.tsa.stattools.adfuller(reference, 10)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/stattools.py", line 221, in adfuller
maxlag, autolag)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/stattools.py", line 64, in _autolag
mod_instance = mod(endog, exog[:,:lag], *modargs)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/regression/linear_model.py", line 479, in init
hasconst=hasconst)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/regression/linear_model.py", line 381, in init
weights=weights, hasconst=hasconst)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/regression/linear_model.py", line 79, in init
super(RegressionModel, self).init(endog, exog, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/base/model.py", line 136, in init
super(LikelihoodModel, self).init(endog, exog, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/base/model.py", line 52, in init
self.data = handle_data(endog, exog, missing, hasconst, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/base/data.py", line 397, in handle_data
return klass(endog, exog=exog, missing=missing, hasconst=hasconst, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/statsmodels/base/data.py", line 78, in init
self._check_integrity()
File "/usr/local/lib/python2.7/dist-packages/statsmodels/base/data.py", line 246, in _check_integrity
if len(self.exog) != len(self.endog):
TypeError: len() of unsized object

After running around 24 hours, analyzer threw out bunch of this kind of errors. Does anyone know the reason for this?

@astanway
Copy link
Contributor

Are you totally up to date? #44 should have fixed this.

@patrickshan
Copy link
Author

Thanks astanway.

Just noticed that commit. I have updated the code base. It works fine now.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants