I've fitted a computationally expensive ARIMA model via the code below:
model = ARIMA(ret, order=(5,0,5))
results = model.fit()
print(results.summary())
I'd like to store the fit (the results object) so that I can load it and use it in other notebooks/programs or in a live environment. I wonder if statsmodels
already has a way of dumping the model to disk and recreating it from estimated parameters. Pickle is also an option.
Of course, I could take the AR and MA coefficients and apply them by hand to the series without using statsmodels
at all.
Use built-in pickle
module, example here: https://wiki.python.org/moin/UsingPickle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.