statsmodels ARIMA.fit: Hide output
Asked Answered
G

1

17

It seems whenever I run ARIMA.fit(), I always get a stdout from the kalman filter:

## -- End pasted text --
RUNNING THE L-BFGS-B CODE

           * * *

Machine precision = 2.220D-16
 N =            1     M =           12
 This problem is unconstrained.

At X0         0 variables are exactly at the bounds

At iterate    0    f=  5.60459D-01    |proj g|=  2.22045D-08

           * * *

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
    1      1      3      1     0     0   0.000D+00   5.605D-01
  F =  0.560459405131994

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.

There doesn't seem to be an obvious parameter to pass into fit to hide this output. How do I hide this output?

Grandnephew answered 7/8, 2015 at 18:29 Comment(2)
try to add disp=0 to the fit call. iprint=0 will also suppress the lbfgsb log file, hopefully.Simas
arima.fit(disp=0) did the trick. Thank you!Grandnephew
U
23

From @user333700's comment, use:

arima.fit(disp=0)

The documentation (for version 0.7.0.dev-c8e980d) says:

disp : bool, optional

If True, convergence information is printed. For the default l_bfgs_b solver, disp controls the frequency of the output during the iterations. disp < 0 means no output in this case.

Uella answered 7/7, 2016 at 10:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.