Package: statsmodels / 0.12.2-1

Metadata

Package Version Patches format
statsmodels 0.12.2-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
use cached datasets | (download)

docs/source/contingency_tables.rst | 4 2 2 - 0 !
docs/source/datasets/index.rst | 2 1 1 - 0 !
docs/source/duration.rst | 4 2 2 - 0 !
docs/source/example_formulas.rst | 2 1 1 - 0 !
docs/source/gee.rst | 2 1 1 - 0 !
docs/source/gettingstarted.rst | 2 1 1 - 0 !
docs/source/index.rst | 2 1 1 - 0 !
docs/source/mixed_linear.rst | 2 1 1 - 0 !
docs/source/release/version0.6.rst | 2 1 1 - 0 !
examples/notebooks/markov_regression.ipynb | 6 1 5 - 0 !
examples/notebooks/mixed_lm_example.ipynb | 4 2 2 - 0 !
examples/notebooks/regression_diagnostics.ipynb | 4 2 2 - 0 !
statsmodels/stats/tests/test_dist_dependant_measures.py | 4 2 2 - 0 !
13 files changed, 18 insertions( ), 22 deletions(-)

 use cached datasets in tests and examples

Also remove a download that isn't actually used in that example.

This allows the tests to pass, and at least some of the examples to
be built, in an offline environment such as a Debian buildd.

The cached data is extracted from R packages by debian/datasets/*.

up_reduce_test_precision | (download)

statsmodels/emplike/tests/test_regression.py | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 to prevent failed test on i386

use system inventory | (download)

docs/source/conf.py | 10 5 5 - 0 !
1 file changed, 5 insertions( ), 5 deletions(-)

 use intersphinx inventory files from other debian packages.
xfail_kalman_armhf.patch | (download)

statsmodels/tsa/innovations/tests/test_arma_innovations.py | 2 2 0 - 0 !
statsmodels/tsa/statespace/representation.py | 6 6 0 - 0 !
statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 4 3 1 - 0 !
statsmodels/tsa/statespace/tests/test_kalman.py | 7 4 3 - 0 !
statsmodels/tsa/statespace/tests/test_mlemodel.py | 4 3 1 - 0 !
statsmodels/tsa/statespace/tests/test_pickle.py | 5 5 0 - 0 !
statsmodels/tsa/statespace/tests/test_representation.py | 5 3 2 - 0 !
statsmodels/tsa/statespace/tests/test_sarimax.py | 7 7 0 - 0 !
statsmodels/tsa/statespace/tests/test_save.py | 9 9 0 - 0 !
statsmodels/tsa/statespace/tests/test_structural.py | 6 6 0 - 0 !
statsmodels/tsa/statespace/tests/test_var.py | 9 9 0 - 0 !
statsmodels/tsa/statespace/tests/test_varmax.py | 3 3 0 - 0 !
12 files changed, 60 insertions( ), 7 deletions(-)

 kalmanfilter broken on armhf / hppa

Warn on use, and xfail the tests

use_available_data.patch | (download)

examples/notebooks/generic_mle.ipynb | 68 43 25 - 0 !
1 file changed, 43 insertions( ), 25 deletions(-)

 use example data from an r package we have

i386_loosen_test_tolerances.patch | (download)

statsmodels/tsa/statespace/tests/test_multivariate_switch_univariate.py | 8 6 2 - 0 !
statsmodels/tsa/statespace/tests/test_smoothing.py | 10 6 4 - 0 !
2 files changed, 12 insertions( ), 6 deletions(-)

 loosen tolerances on some tests on i386

Failure logs:
test_smoothing
https://buildd.debian.org/status/fetch.php?pkg=statsmodels&arch=i386&ver=0.9.0-3&stamp=1567157609&raw=0
test_multivariate_switch_univariate
https://buildd.debian.org/status/fetch.php?pkg=statsmodels&arch=i386&ver=0.12.0-1&stamp=1599693472&raw=0

As it only fails on i386 and isn't far wrong,
python3_shebangs.patch | (download)

archive/docs/fix_longtable.py | 2 1 1 - 0 !
examples/python/plots_boxplots.py | 2 1 1 - 0 !
examples/python/robust_models_1.py | 2 1 1 - 0 !
statsmodels/regression/quantile_regression.py | 2 1 1 - 0 !
statsmodels/sandbox/examples/example_pca.py | 2 1 1 - 0 !
statsmodels/tools/print_version.py | 2 1 1 - 0 !
tools/export_notebooks_to_python.py | 2 1 1 - 0 !
tools/generate_formula_api.py | 2 1 1 - 0 !
8 files changed, 8 insertions( ), 8 deletions(-)

 use python 3 in script shebangs

(Skipping the two .pyx files with #!python - they need to be compiled
with Cython, not directly run with any version of plain Python)

use_tmp_path.patch | (download)

statsmodels/datasets/tests/test_utils.py | 18 8 10 - 0 !
1 file changed, 8 insertions( ), 10 deletions(-)

 don't try to write to the source directory

Not allowed in autopkgtest

944054_flaky_tests.patch | (download)

statsmodels/base/tests/test_penalized.py | 2 2 0 - 0 !
statsmodels/tsa/statespace/tests/test_exact_diffuse_filtering.py | 1 1 0 - 0 !
2 files changed, 3 insertions( )

 xfail or loosen tolerances on flaky tests

The test_nondiagonal_obs_cov one hasn't yet been seen in Debian
but is known in upstream CI:
https://github.com/statsmodels/statsmodels/pull/6475#issuecomment-581151072

sphinx_autosummary.patch | (download)

docs/source/conf.py | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 make the module reference tables appear

Our numpydoc is old enough to still need this manually set

no_sphinx_material.patch | (download)

docs/source/conf.py | 11 4 7 - 0 !
1 file changed, 4 insertions( ), 7 deletions(-)

 don't try to use a theme we don't have

Upstream switched to sphinx_material in
1d7aafad5c3ad634c9ae2122881c1809c2ccbcbe
and Debian doesn't have that theme.

(I haven't investigated packaging it, which might be a better long-term option.)

sphinx_ignore_errors.patch | (download)

docs/Makefile | 2 2 0 - 0 !
docs/source/conf.py | 1 1 0 - 0 !
2 files changed, 3 insertions( )

 don't fail documentation build on examples exceptions

If example code outputs an error when run,
ipython (ipython:: blocks) now fails the whole build by default,
and tools/nbgenerate.py (.ipynb files) now leaves out that file
(leaving a broken link in the examples index).

As some examples use downloaded data and are hence expected to be
unrunnable on a Debian buildd, this instead keeps them
(::ipython with error output, .ipynb without output).

fix_test_bounds.patch | (download)

statsmodels/tsa/statespace/tests/results/results_structural.py | 7 5 2 - 0 !
1 file changed, 5 insertions( ), 2 deletions(-)

 avoid nan crash in test_structural

Out-of-range frequency.cycle starting values make untransform_params return NaN,
which crashes summary()

sphinx_local_requirejs.patch | (download)

docs/source/conf.py | 2 2 0 - 0 !
1 file changed, 2 insertions( )

 use local requirejs

spelling.patch | (download)

statsmodels/tsa/_stl.pyx | 6 3 3 - 0 !
statsmodels/tsa/tests/test_stl.py | 12 6 6 - 0 !
2 files changed, 9 insertions( ), 9 deletions(-)

 fix typos

xfail_regimeswitching_armhf.patch | (download)

statsmodels/tsa/regime_switching/markov_switching.py | 5 5 0 - 0 !
statsmodels/tsa/regime_switching/tests/test_markov_autoregression.py | 2 2 0 - 0 !
statsmodels/tsa/regime_switching/tests/test_markov_regression.py | 2 2 0 - 0 !
3 files changed, 9 insertions( )

 markov* broken on armhf

Warn on use, and xfail tests

I suspect https://github.com/statsmodels/statsmodels/pull/5826
but that improved it enough on amd64 that
reverting it isn't a good solution.

xfail_dynamicfactor_ppc64el.patch | (download)

statsmodels/tsa/statespace/dynamic_factor.py | 5 5 0 - 0 !
statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 3 2 1 - 0 !
2 files changed, 7 insertions( ), 1 deletion(-)

 dynamicfactor test fail on ppc64el

Warn on use and xfail test

xfail_no_multiprocessing.patch | (download)

statsmodels/graphics/tests/test_functional.py | 34 34 0 - 0 !
1 file changed, 34 insertions( )

 allow tests to fail if multiprocessing is not available

This is currently the case on hurd-i386

remove_ccbysa_snippet.patch | (download)

statsmodels/examples/ex_generic_mle_tdist.py | 3 3 0 - 0 !
statsmodels/graphics/regressionplots.py | 5 3 2 - 0 !
statsmodels/tools/sequences.py | 29 14 15 - 0 !
3 files changed, 20 insertions( ), 17 deletions(-)

 remove code from stack overflow and wasteful loop

Stack Overflow content is CC-BY-SA licensed,
which this package is not supposed to be.  This snippet may be
too small to be copyrightable, but removing it to be safe.

968210_ignore_tests.patch | (download)

statsmodels/__init__.py | 4 4 0 - 0 !
statsmodels/discrete/tests/test_count_model.py | 3 2 1 - 0 !
2 files changed, 6 insertions( ), 1 deletion(-)

 ignore test failures on arm64, warn on armel

arm64 - TestZeroInflatedModel_probit convergence issues
armel - 21 crashes, 2 wrong answers (ignored in d/rules)