Skip to content

ENH: Allow several optimizers to be tried in sequence for MixedLM - #4819

Merged
kshedden merged 4 commits into
statsmodels:masterfrom
kshedden:mixedlm_ntry
Aug 11, 2018
Merged

kshedden merged 4 commits into
statsmodels:masterfrom
kshedden:mixedlm_ntry

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

We previously tried the same optimizer 5 times (picking up each time where the previous attempt stopped). But this rarely if ever seems to help with problems where convergence is an issue. Usually it just wastes a lot of time waiting for the same failure to happen 5 times.

This new approach has a series of optimizers that are cycled through. The default is ['bfgs', 'lbfgs']. lbfgs works sometimes when bfgs does not.

@coveralls

coveralls commented Jul 31, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.02%) to 83.627% when pulling 2f20e7e on kshedden:mixedlm_ntry into 13a56e9 on statsmodels:master.

@codecov-io

codecov-io commented Jul 31, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #4819 into master will increase coverage by 0.06%.
The diff coverage is 36.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4819      +/-   ##
==========================================
+ Coverage   81.08%   81.14%   +0.06%     
==========================================
  Files         581      581              
  Lines       89991    90003      +12     
  Branches     9343    10061     +718     
==========================================
+ Hits        72968    73034      +66     
+ Misses      14734    14683      -51     
+ Partials     2289     2286       -3
Impacted Files Coverage Δ
statsmodels/regression/tests/test_lme.py 89.09% <0%> (ø) ⬆️
statsmodels/regression/mixed_linear_model.py 81.12% <38.88%> (-0.52%) ⬇️
statsmodels/sandbox/distributions/mv_normal.py 38.97% <0%> (ø) ⬆️
statsmodels/stats/descriptivestats.py 24.13% <0%> (ø) ⬆️
statsmodels/sandbox/bspline.py 0% <0%> (ø) ⬆️
statsmodels/sandbox/stats/multicomp.py 40.25% <0%> (ø) ⬆️
statsmodels/sandbox/distributions/gof_new.py 0% <0%> (ø) ⬆️
statsmodels/tsa/statespace/mlemodel.py 86% <0%> (+0.11%) ⬆️
statsmodels/base/model.py 85.3% <0%> (+0.15%) ⬆️
... and 13 more

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 13a56e9...2f20e7e. Read the comment docs.

@kshedden
kshedden merged commit a40de55 into statsmodels:master Aug 11, 2018
@josef-pkt josef-pkt added this to the 0.10 milestone Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants