Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test on OLS on Ubuntu 10.04 #149

Closed
DataJunkie opened this issue Sep 17, 2011 · 7 comments
Closed

Failing test on OLS on Ubuntu 10.04 #149

DataJunkie opened this issue Sep 17, 2011 · 7 comments

Comments

@DataJunkie
Copy link

I've installed the dependencies as well as Cython and am getting a failing test on Ubuntu 10.04:

FAIL: testOLSWithDatasets (pandas.stats.tests.test_ols.TestOLS)

Traceback (most recent call last):
File "/home/ryan/Code/pandas/pandas/stats/tests/test_ols.py", line 56, in testOLSWithDatasets
self.checkDataSet(datasets.ccard.load(), 39, 49) # one col in X all 0s
File "/home/ryan/Code/pandas/pandas/stats/tests/test_ols.py", line 67, in checkDataSet
self.checkOLS(exog, endog, x, y)
File "/home/ryan/Code/pandas/pandas/stats/tests/test_ols.py", line 86, in checkOLS
assert_almost_equal(reference.params, result._beta_raw)
File "/home/ryan/Code/pandas/pandas/util/testing.py", line 76, in assert_almost_equal
np.testing.assert_equal(len(a), len(b))
File "/usr/lib/python2.6/dist-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 4
DESIRED: 5

@wesm
Copy link
Member

wesm commented Sep 17, 2011

What version of statsmodels? May also be an apt-get staleness issue. I should list required version numbers in the readme (for example, statsmodels >= 0.3.0)

@DataJunkie
Copy link
Author

0.3.0. I did a git pull, built and installed again but test is still failing.

@DataJunkie
Copy link
Author

I should say, I did a git pull on statsmodels

@DataJunkie
Copy link
Author

Any update?

@wesm
Copy link
Member

wesm commented Sep 20, 2011

It's something platform specific with that degenerate test case. Does the suite pass if you comment out this line in test_ols.py?

self.checkDataSet(datasets.ccard.load(), 39, 49)

@DataJunkie
Copy link
Author

Yes. With that test commented, the suite passes.

@wesm
Copy link
Member

wesm commented Sep 22, 2011

Excluding that test case. You should be all set with the git HEAD

@wesm wesm closed this as completed Sep 22, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
Fix Quandl library references in README.md ; Apple can be found in WIKI/AAPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants