Skip to content

BUG fix pickling for discrete fit_regularized - #3939

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
josef-pkt:fit_reg_pickle_3678_rebased
Sep 26, 2017
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
josef-pkt:fit_reg_pickle_3678_rebased

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Sep 26, 2017 •

Copy link
Copy Markdown
Member

#3678 interactively rebased with edit of changes

#2685 original bug report
#2686 unit test PR

closes #2685, closes #2686, closes #3678

Add a test that fails without this fix.  In particular, cov_params_func key gets set in fit_regularized.

The test is taken directly from GH#2686
@josef-pkt

Copy link
Copy Markdown
Member Author

strange thing:
I cannot run the statsmodels/base/tests/test_shrink_pickle.py with nosetests. If I kill it with Ctrl+C, then it shows problems with loading multiarray.c around/in kalman

test_shrink_pickle.py runs without errors with pytest, and tsa tests run and pass in the interpreter (`statsmodels.tsa.test() which uses pytest)

also, I don't have problems running the discrete tests with nosetests

@josef-pkt

Copy link
Copy Markdown
Member Author

ready to merge if green

@coveralls

coveralls commented Sep 26, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.005%) to 81.569% when pulling c641f26 on josef-pkt:fit_reg_pickle_3678_rebased into bcda33d on statsmodels:master.

@codecov-io

codecov-io commented Sep 26, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #3939 into master will increase coverage by <.01%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3939      +/-   ##
=========================================
+ Coverage   78.99%     79%   +<.01%     
=========================================
  Files         541     541              
  Lines       80877   80886       +9     
  Branches     9188    9191       +3     
=========================================
+ Hits        63892   63901       +9     
+ Misses      14909   14907       -2     
- Partials     2076    2078       +2
Impacted Files Coverage Δ
statsmodels/base/tests/test_shrink_pickle.py 97.71% <100%> (+0.09%) ⬆️
statsmodels/discrete/discrete_model.py 87.53% <66.66%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcda33d...c641f26. Read the comment docs.

@josef-pkt
josef-pkt merged commit 479af83 into statsmodels:master Sep 26, 2017
@josef-pkt

Copy link
Copy Markdown
Member Author

Thanks @kashif @jbrockmendel

@kashif

kashif commented Sep 26, 2017

Copy link
Copy Markdown

thank you!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants