Skip to content

Instantly share code, notes, and snippets.

@TomAugspurger
Created June 26, 2013 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomAugspurger/5868154 to your computer and use it in GitHub Desktop.
Save TomAugspurger/5868154 to your computer and use it in GitHub Desktop.
statsmodels_tests
(vanilla)Toms-MacBook-Pro:python2.7 tom$ python -c "import statsmodels as s; s.test('full')"
Running unit tests for statsmodels
NumPy version 1.7.1
NumPy is installed in /Users/tom/vanilla/lib/python2.7/site-packages/numpy
Python version 2.7.3 (default, Feb 10 2013, 17:17:55) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)]
nose version 1.3.0
/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/tsa/vector_ar/var_model.py:339: FutureWarning: The names argument is deprecated and will be removed in the next release.
"removed in the next release.", FutureWarning)
.........................................................................................................................S.....S.......................................................................S.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSSS..SSSSSSSSSSSS........SS...........................................................S.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S..........S........S...S..........S........S..S........S...S..........S........S..S.......S...S..................................................................................................................../Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/stats/correlation_tools.py:82: UserWarning: maximum iteration reached
warnings.warn('maximum iteration reached')
...............................................................................................................................................................................................................................................................................................................................................................................................................................................S...S...S...S...S...S...S...S...S...S...S...S...S...S...S...S...S...S...S..............no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
..no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
......./Users/tom/vanilla/lib/python2.7/site-packages/scipy/stats/stats.py:1276: UserWarning: kurtosistest only valid for n>=20 ... continuing anyway, n=15
int(n))
....................................................................joblib not installed. Cannot run in parallel.
.........................................................................................S................SSSSSS..............F.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Optimization terminated successfully.
Current function value: 5.327270
Iterations: 334
Function evaluations: 682
..........................................................
======================================================================
FAIL: statsmodels.tsa.tests.test_ar.TestARMLEConstant.test_dynamic_predict
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/tsa/tests/test_ar.py", line 159, in test_dynamic_predict
assert_almost_equal(fv, res2.fcdyn[start:end+1], DECIMAL_4)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 452, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 812, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 4 decimals
(mismatch 27.9069767442%)
x: array([ 11.23049853, 13.23737915, 19.66416987, 27.00383112,
33.57868265, 44.90793235, 47.95875227, 45.09355264,
36.50664185, 28.78826358, 23.48721623, 22.53218482,...
y: array([ 11.23047, 13.23731, 19.66407, 27.00373, 33.57858, 44.90784,
47.95866, 45.09347, 36.50656, 28.78818, 23.48711, 22.53206,
25.68737, 31.07822, 38.54836, 45.41845, 49.67139, 49.37283,...
----------------------------------------------------------------------
Ran 2762 tests in 455.463s
FAILED (SKIP=62, failures=1)
(vanilla)Toms-MacBook-Pro:python2.7 tom$
(vanilla)Toms-MacBook-Pro:python2.7 tom$ python -c "import statsmodels as s; s.test('full')"
Running unit tests for statsmodels
NumPy version 1.7.1
NumPy is installed in /Users/tom/vanilla/lib/python2.7/site-packages/numpy
Python version 2.7.3 (default, Feb 10 2013, 17:17:55) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)]
nose version 1.3.0
/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/tsa/vector_ar/var_model.py:339: FutureWarning: The names argument is deprecated and will be removed in the next release.
"removed in the next release.", FutureWarning)
.........................................................................................................................S.....S.......................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................EE..................................E.E............................................................S.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S..........S........S...S..........S........S..S........S...S..........S........S..S.......S...S..................................................................................................................../Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/stats/correlation_tools.py:82: UserWarning: maximum iteration reached
warnings.warn('maximum iteration reached')
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................S..............................................................................no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
..no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
no overlap, power is zero, TODO
......./Users/tom/vanilla/lib/python2.7/site-packages/scipy/stats/stats.py:1276: UserWarning: kurtosistest only valid for n>=20 ... continuing anyway, n=15
int(n))
..................................................................................................................................................................................................F.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Optimization terminated successfully.
Current function value: 5.327270
Iterations: 334
Function evaluations: 682
..........................................................
======================================================================
ERROR: statsmodels.graphics.tests.test_correlation.test_plot_corr
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
return f(*args, **kwargs)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/tests/test_correlation.py", line 20, in test_plot_corr
fig = plot_corr(corr_matrix, xnames=hie_data.names)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/correlation.py", line 115, in plot_corr
fig.tight_layout()
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/figure.py", line 1543, in tight_layout
rect=rect)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 352, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 129, in auto_adjust_subplotpars
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axes.py", line 8895, in get_tightbbox
bb.append(self.title.get_window_extent(renderer))
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 752, in get_window_extent
bbox, info = self._get_layout(self._renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 304, in _get_layout
ismath=False)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 159, in get_text_width_height_descent
width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL
======================================================================
ERROR: statsmodels.graphics.tests.test_correlation.test_plot_corr_grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
return f(*args, **kwargs)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/tests/test_correlation.py", line 35, in test_plot_corr_grid
fig = plot_corr_grid([corr_matrix] * 2, xnames=hie_data.names)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/correlation.py", line 218, in plot_corr_grid
normcolor=normcolor, ax=ax, cmap=cmap)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/correlation.py", line 115, in plot_corr
fig.tight_layout()
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/figure.py", line 1543, in tight_layout
rect=rect)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 352, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 129, in auto_adjust_subplotpars
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axes.py", line 8897, in get_tightbbox
bb_xaxis = self.xaxis.get_tightbbox(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1018, in get_tightbbox
renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1001, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 752, in get_window_extent
bbox, info = self._get_layout(self._renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 304, in _get_layout
ismath=False)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 159, in get_text_width_height_descent
width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL
======================================================================
ERROR: statsmodels.graphics.tests.test_regressionplots.TestPlot.test_plot_oth
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/tests/test_regressionplots.py", line 72, in test_plot_oth
plot_partregress_grid(res, exog_idx=[0,1])
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/regressionplots.py", line 466, in plot_partregress_grid
fig = utils.maybe_tight_layout(fig)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/utils.py", line 156, in maybe_tight_layout
fig.tight_layout()
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/figure.py", line 1543, in tight_layout
rect=rect)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 352, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 129, in auto_adjust_subplotpars
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axes.py", line 8897, in get_tightbbox
bb_xaxis = self.xaxis.get_tightbbox(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1018, in get_tightbbox
renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1001, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 752, in get_window_extent
bbox, info = self._get_layout(self._renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 304, in _get_layout
ismath=False)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 159, in get_text_width_height_descent
width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL
======================================================================
ERROR: statsmodels.graphics.tests.test_regressionplots.TestPlotPandas.test_plot_oth
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/tests/test_regressionplots.py", line 72, in test_plot_oth
plot_partregress_grid(res, exog_idx=[0,1])
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/regressionplots.py", line 466, in plot_partregress_grid
fig = utils.maybe_tight_layout(fig)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/graphics/utils.py", line 156, in maybe_tight_layout
fig.tight_layout()
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/figure.py", line 1543, in tight_layout
rect=rect)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 352, in get_tight_layout_figure
pad=pad, h_pad=h_pad, w_pad=w_pad)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/tight_layout.py", line 129, in auto_adjust_subplotpars
tight_bbox_raw = union([ax.get_tightbbox(renderer) for ax in subplots])
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axes.py", line 8897, in get_tightbbox
bb_xaxis = self.xaxis.get_tightbbox(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1018, in get_tightbbox
renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/axis.py", line 1001, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 752, in get_window_extent
bbox, info = self._get_layout(self._renderer)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/text.py", line 304, in _get_layout
ismath=False)
File "/Users/tom/vanilla/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 159, in get_text_width_height_descent
width, height, descent = self.gc.get_text_width_height_descent(unicode(s), family, size, weight, style)
RuntimeError: CGContextRef is NULL
======================================================================
FAIL: statsmodels.tsa.tests.test_ar.TestARMLEConstant.test_dynamic_predict
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/vanilla/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-x86_64.egg/statsmodels/tsa/tests/test_ar.py", line 159, in test_dynamic_predict
assert_almost_equal(fv, res2.fcdyn[start:end+1], DECIMAL_4)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 452, in assert_almost_equal
return assert_array_almost_equal(actual, desired, decimal, err_msg)
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 812, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "/Users/tom/vanilla/lib/python2.7/site-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 4 decimals
(mismatch 27.9069767442%)
x: array([ 11.23049853, 13.23737915, 19.66416987, 27.00383112,
33.57868265, 44.90793235, 47.95875227, 45.09355264,
36.50664185, 28.78826358, 23.48721623, 22.53218482,...
y: array([ 11.23047, 13.23731, 19.66407, 27.00373, 33.57858, 44.90784,
47.95866, 45.09347, 36.50656, 28.78818, 23.48711, 22.53206,
25.68737, 31.07822, 38.54836, 45.41845, 49.67139, 49.37283,...
----------------------------------------------------------------------
Ran 2777 tests in 460.578s
FAILED (SKIP=19, errors=4, failures=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment