You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Convergence information being displayed during ARIMA.fit() regardless of disp value #3191
arima_model=ARIMA(transformed_data, order=(model_order[0], model_order[1], model_order[2]))
arima_results=arima_model.fit(disp=False) # or disp=-1
RUNNING THE L-BFGS-B CODE
* * *
Machine precision = 2.220D-16
N = 3 M = 10
This problem is unconstrained.
At X0 0 variables are exactly at the bounds
At iterate 0 f= 7.16189D+00 |proj g|= 1.29181D-01
At iterate 5 f= 7.00504D+00 |proj g|= 1.47562D-03
At iterate 10 f= 7.00442D+00 |proj g|= 1.79098D-02
At iterate 15 f= 6.93115D+00 |proj g|= 2.95095D-01
At iterate 20 f= 6.84326D+00 |proj g|= 7.16658D-04
* * *
Tit = total number of iterations
Tnf = total number of function evaluations
Tnint = total number of segments explored during Cauchy searches
Skip = number of BFGS updates skipped
Nact = number of active bounds at final generalized Cauchy point
Projg = norm of the final projected gradient
F = final function value
* * *
N Tit Tnf Tnint Skip Nact Projg F
3 23 25 1 0 0 4.230D-07 6.843D+00
F = 6.8432611444769238
CONVERGENCE: NORM_OF_PROJECTED_GRADIENT_<=_PGTOL
Cauchy time 0.000E+00 seconds.
Subspace minimization time 0.000E+00 seconds.
Line search time 0.000E+00 seconds.
Total User time 0.000E+00 seconds.
... while the issue title states that it is/was the other way round. Anyway, still a (wrong fix of this?) bug: the disp parameter on ARIMA.fit is still ignored.
another issue in @plankthom ARIMA code link is that we don't have in general separate options for preliminary estimation of start_params.
Those are usually hard coded to no display. In discrete models I introduced a backdoor through an unadvertised (?) extra kwarg optim_kwds_prelim which I needed for cases when the preliminary estimator ran into convergence problems, which can also handle disp for the prelim estimator.
Activity
bashtage commentedon Sep 8, 2016
Can't reproduce
What deps do you have installed?
philipobrien commentedon Sep 8, 2016
bashtage commentedon Sep 8, 2016
Strange, can't repro on Linux either.
Versions are essentially identical.
bashtage commentedon Sep 8, 2016
If you use a fresh IPython and just paste my code do you see output?
josef-pkt commentedon Sep 8, 2016
is it possible that there is the lbfgsb log file piped to the console?
I'm not sure what the current status is, but some time ago the log file was always created unless the special option turned it of.
plankthom commentedon Sep 21, 2018
... statsmodels.api.SARIMAX.fit gives this output.
statsmodels.api.tsa.ARIMA.fit doesn't because of
statsmodels/statsmodels/tsa/arima_model.py
Line 567 in e1822d4
plankthom commentedon Sep 21, 2018
... while the issue title states that it is/was the other way round. Anyway, still a (wrong fix of this?) bug: the disp parameter on ARIMA.fit is still ignored.
josef-pkt commentedon Sep 21, 2018
fmin_l_bfgs_b has two display keywords, disp and iprint, so it's a bit messy
https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin_l_bfgs_b.html
default
iprintin base.optimizer is set to 0my guess is that we should change the default to
iprint=-1 if disp is Falsejosef-pkt commentedon Sep 21, 2018
another issue in @plankthom ARIMA code link is that we don't have in general separate options for preliminary estimation of start_params.
Those are usually hard coded to no display. In discrete models I introduced a backdoor through an unadvertised (?) extra kwarg
optim_kwds_prelimwhich I needed for cases when the preliminary estimator ran into convergence problems, which can also handle disp for the prelim estimator.Nakshjainsonigara commentedon Jun 4, 2025
Hi I’d like to work on this issue. Please assign it to me.
BUG: pass iprint to fmin_l_bfgs_b and respect disp parameter