start_ar_lags parameter
The statsmodels.tsa.arima_model has been replaced by statsmodels.tsa.arima.model. The codes in the resources cannot be run directly. I've tried to modify to code but still stuck with the start_ar_lags parameter which does not exist in the fit method.
2 answers ( 0 marked as helpful)
have you got any solution for this?
I guess they don't care about us...
But ChatGPT does.
To update this to the new version of
Still, statsmodels has changed so significantly, this course needs a complete overhaul I think - it's something like 7 years old.
But ChatGPT does.
To update this to the new version of
statsmodels
(which no longer uses start_ar_lags
), you don't need to combine these two settings directly. The order=(3,1,2)
already specifies the AR and MA orders for the model. The start_ar_lags
argument was mainly used for initialization during model fitting, but now statsmodels
handles this automatically.Still, statsmodels has changed so significantly, this course needs a complete overhaul I think - it's something like 7 years old.