Repository navigation
REF/BUG: ARMA/ARIMA increase default maxiter in fit - #4004
Conversation
|
maxiter=50 in ARIMA.fit seems to be very low to me |
3d8ed0e to
97c90c6
Compare
|
One more try to see what's going on, before giving up again I added an assert that warnflag for converged is equal 0. (I don't see a scipy change that would account for worse convergence behavior in fmin.l_bfgs_b) |
|
Ok, this wasn't so useful so far (except for getting a bit of info about lbfgs in ARIMA) ARMA.fit towards the bottom of the method defines already pgtol at 1e-8 before calling super factr seems too small to me, (which I guess makes it a non-binding convergence criterion) |
|
warnflag is informative 1 if too many function evaluations or too many iterations, so maxiter or maxfun |
|
one more change (will push when green) add |
1 similar comment
|
Travis is all green, maxiter was the problem |
|
should be ready to merge when green |
|
aside: |
Codecov Report
@@ Coverage Diff @@
## master #4004 +/- ##
==========================================
- Coverage 79.06% 79.06% -0.01%
==========================================
Files 542 542
Lines 81016 81018 +2
Branches 9202 9202
==========================================
Hits 64055 64055
- Misses 14872 14873 +1
- Partials 2089 2090 +1
Continue to review full report at Codecov.
|
closes #3980 test_arima111_predict_exog_2127 test fails again in some test environments
first try: Tighten pgtol for lbfgs optimization in test - pgtol was already at the tighter level
relevant change: increase maxiter in ARMA/ARIMA
bonus: add
iterationsto lbfgs mle_retvalsNote point of test was not precision issues, just that exog is transmitted properly.
If this doesn't work, then we just increase test tolerance again.
As check: gopt in mle_retvals is much smaller than the explicitly computed score with lbfgs.
However, the predictions agree with solver='newton' at an atol around 5e-7,
solver='newton' works well starting from the lbfgs params and has very small score at optimum, in contrast to lbfgs.
The newton predicts also agree with those used in the unit test at around atol 5e-7. so those are not very noisy.
I'm using scipy '0.18.1'