Skip to content

Test emplike.tests.test_regression.TestRegressionNM.test_ci_beta2 failing #1316

Open

Description

@sergiopasra

The test statsmodels.emplike.tests.test_regression.TestRegressionNM.test_ci_beta2
is failing in Fedora 20 with the following versions

[1] sm.version.full_version
'0.6.0.dev-b401d4d'

[2] sm.api.show_versions()
INSTALLED VERSIONS
------------------
Python: 2.7.5.final.0
OS: Linux 3.12.7-300.fc20.x86_64 #1 SMP Fri Jan 10 15:35:31 UTC 2014 x86_64
byteorder: little
LC_ALL: None
LANG: es_ES.utf8

Statsmodels
===========

Installed: 0.6.0.dev-b401d4d (statsmodels)

Required Dependencies
=====================

cython: 0.19.2 (/usr/lib64/python2.7/site-packages/Cython)
numpy: 1.8.0 (/usr/lib64/python2.7/site-packages/numpy)
scipy: 0.12.1 (/usr/lib64/python2.7/site-packages/scipy)
pandas: 0.10.0 (/usr/lib64/python2.7/site-packages/pandas)
    dateutil: 1.5 (/usr/lib/python2.7/site-packages/dateutil)
patsy: 0.2.1 (/usr/lib/python2.7/site-packages/patsy)

Optional Dependencies
=====================

matplotlib: 1.3.0 (/usr/lib64/python2.7/site-packages/matplotlib)
cvxopt: Not installed

Developer Tools
================

IPython: 0.13.2 (/usr/lib/python2.7/site-packages/IPython)
    jinja2: 2.7.1 (/usr/lib/python2.7/site-packages/jinja2)
sphinx: 1.1.3 (/usr/lib/python2.7/site-packages/sphinx)
    pygments: 1.6 (/usr/lib/python2.7/site-packages/pygments)
nose: 1.3.0 (/usr/lib/python2.7/site-packages/nose)
virtualenv: 1.10.1 (/usr/lib/python2.7/site-packages)

And the stack trace is

======================================================================
ERROR: statsmodels.emplike.tests.test_regression.TestRegressionNM.test_ci_beta2
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/spr/devel/statsmodels/build/lib.linux-x86_64-2.7/statsmodels/emplike/tests/test_regression.py", line 150, in test_ci_beta2
    beta2ci = self.res1.conf_int_el(2, lower_bound=.59, upper_bound=2.2,  method='nm')
  File "/home/spr/devel/statsmodels/build/lib.linux-x86_64-2.7/statsmodels/regression/linear_model.py", line 2224, in conf_int_el
    upper_bound)
  File "/usr/lib64/python2.7/site-packages/scipy/optimize/zeros.py", line 463, in brenth
    r = _zeros._brenth(f,a, b, xtol, maxiter, args, full_output, disp)
ValueError: f(a) and f(b) must have different signs

----------------------------------------------------------------------

Activity

  1. jseabold commented on Jan 17, 2014

    @jseabold
    Member

    Thanks for the report. We have problems with these tests and periodic failures. The installation is fine, but we need to fix the test.

    What can we do to silence these once and for all? I take it there's not going to be any robustness fixes for the code. I'd like to avoid a cosmetic fix for the test and just mark it knownfail or something.

  2. josef-pkt commented on Jan 17, 2014

    @josef-pkt
    Member

    This test and a related one fail only on a few machines (types, OS), they never fail on Ubuntu (launchpad or TravisCI) nor in my Windows testing.

    The test is a little bit fragile, but I never managed to cause an error in the tested functions on Windows.
    My best guess is that there is something fishy or fragile in scipy.optimize fmin and fmin_powell.
    But, without playing on one of the affected machines, it's impossible to tell what might be going wrong.

  3. sergiopasra commented on Jan 17, 2014

    @sergiopasra
    Author

    A way of testing this is to set tup a virtual machine. I have checked that the test fails in a
    Fedora 20 x86_64 virtual machine, using the precompiled packages of the distribution.

    Numpy and Scipy in Fedora use ATLAS. Do you know in they use OpenBlas in Ubuntu?

  4. jseabold commented on Jan 17, 2014

    @jseabold
    Member

    No I think Ubuntu uses ATLAS as well.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions