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

ubuntu failues: tsa_plot and grouputils #1521

Closed
josef-pkt opened this issue Mar 27, 2014 · 5 comments
Closed

ubuntu failues: tsa_plot and grouputils #1521

josef-pkt opened this issue Mar 27, 2014 · 5 comments

Comments

@josef-pkt
Copy link
Member

looks like with pandas 0.14.0

https://launchpadlibrarian.net/170611901/buildlog_ubuntu-saucy-i386.statsmodels_0.6.0~ppa18~revno-1586~ubuntu13.10.1_UPLOADING.txt.gz

======================================================================
ERROR: statsmodels.graphics.tests.test_tsaplots.test_plot_quarter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tests/test_tsaplots.py", line 84, in test_plot_quarter
    quarter_plot(dta.unemp)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/graphics/tsaplots.py", line 280, in quarter_plot
    _check_period_index(x, freq="Q")
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tools/data.py", line 22, in _check_period_index
    raise ValueError("The index must be a DatetimeIndex or PeriodIndex")
ValueError: The index must be a DatetimeIndex or PeriodIndex


======================================================================
FAIL: statsmodels.tools.tests.test_grouputils.TestIndexGrouping.test_transform_slices
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tools/tests/test_grouputils.py", line 112, in test_transform_slices
    expected.values)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 719, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 22.7272727273%)
 x: array([[  6.84840000e+00,   5.75448500e+01,   6.80224500e+01,
          1.94450000e+03],
       [  6.18025000e+01,   2.31470000e+02,   4.86765000e+02,...
 y: array([[  6.84840000e+00,   5.75448500e+01,   6.80224500e+01,
          1.94450000e+03],
       [  6.18025000e+01,   2.31470000e+02,   4.86765000e+02,...

======================================================================
FAIL: statsmodels.tools.tests.test_grouputils.TestMultiIndexGrouping.test_transform_slices
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/buildd/statsmodels-0.6.0~ppa18~revno/debian/python-statsmodels/usr/lib/python2.7/dist-packages/statsmodels/tools/tests/test_grouputils.py", line 112, in test_transform_slices
    expected.values)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 719, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 30.303030303%)
 x: array([[  6.84840000e+00,   5.75448500e+01,   6.80224500e+01],
       [  6.18025000e+01,   2.31470000e+02,   4.86765000e+02],
       [  8.61235000e+01,   6.93210000e+02,   1.21245000e+02],...
 y: array([[  6.84840000e+00,   5.75448500e+01,   6.80224500e+01],
       [  6.18025000e+01,   2.31470000e+02,   4.86765000e+02],
       [  8.61235000e+01,   6.93210000e+02,   1.21245000e+02],...

@josef-pkt
Copy link
Member Author

@jseabold do you see failures with pandas master, which it looks like pythonxy ubuntu is using?

Get:8 http://ppa.launchpad.net/pythonxy/pythonxy-devel/ubuntu/ saucy/main python-pandas all 0.14.0~ppa16~revno-6118~ubuntu13.10.1

@josef-pkt
Copy link
Member Author

amd64 has the tsa_plot failure but not the other two
but the ARMA small data SVD not coverged is also on amd64

Get:131 http://ftpmaster.internal/ubuntu/ saucy/main python-numpy amd64 1:1.7.1-1ubuntu1

https://launchpadlibrarian.net/170611174/buildlog_ubuntu-saucy-amd64.statsmodels_0.6.0~ppa18~revno-1586~ubuntu13.10.1_UPLOADING.txt.gz

@jseabold
Copy link
Member

Yeah, the latter look like 32-bit issues. The former, I don't know about. I do see it locally. I'll have to look. I think I actually relaxed this check in my exponential smoothing branch.

@josef-pkt
Copy link
Member Author

adding this here test failures with pandas 0.11 found while version testing in
#1523 (comment)

needs decision: fix or require pandas >= 0.12

======================================================================
ERROR: statsmodels.tools.tests.test_grouputils.TestIndexGrouping.test_count_categories
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/tests/test_grouputils.py", line 16, in test_count_categories
    self.grouping.count_categories(level=0)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 410, in count_categories
    self.counts = np.bincount(self.labels[level])
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 373, in labels
    return pd.Categorical(self.index).labels[None]
TypeError: __init__() takes at least 3 arguments (2 given)
======================================================================
ERROR: statsmodels.tools.tests.test_grouputils.TestIndexGrouping.test_dummies_groups
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/tests/test_grouputils.py", line 127, in test_dummies_groups
    self.grouping.dummies_groups()
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 496, in dummies_groups
    self.dummy_sparse(level=level)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 546, in dummy_sparse
    groups = self.labels[level]
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 373, in labels
    return pd.Categorical(self.index).labels[None]
TypeError: __init__() takes at least 3 arguments (2 given)
======================================================================
ERROR: statsmodels.tools.tests.test_grouputils.TestIndexGrouping.test_dummy_sparse
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/tests/test_grouputils.py", line 134, in test_dummy_sparse
    self.grouping.dummy_sparse()
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 546, in dummy_sparse
    groups = self.labels[level]
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/grouputils.py", line 373, in labels
    return pd.Categorical(self.index).labels[None]
TypeError: __init__() takes at least 3 arguments (2 given)
======================================================================
FAIL: statsmodels.tools.tests.test_grouputils.test_init_api
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/statsmodels-0.6.0-py2.6-linux-x86_64.egg/statsmodels/tools/tests/test_grouputils.py", line 238, in test_init_api
    np.testing.assert_array_equal(grouping.group_names, ['firms'])
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/numpy/testing/utils.py", line 719, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/home/travis/miniconda/envs/statsmodels-test/lib/python2.6/site-packages/numpy/testing/utils.py", line 645, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal
(mismatch 100.0%)
 x: array(['firm'], 
      dtype='|S4')
 y: array(['firms'], 
      dtype='|S5')

@jseabold jseabold added this to the 0.5.1 milestone Mar 30, 2014
@josef-pkt
Copy link
Member Author

closing:
we haven't seen this again, parts are fixed and we increasing pandas version requirement

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

No branches or pull requests

2 participants