I'm trying to retrieve an out-of-sample prediction for ARIMA model. However, I constantly receive errors and I'm not sure how should I proceed now:( The code is the following:
from statsmodels.tsa.arima_model import ARIMA
fit = ARIMA(endog, (1,1,1)).fit()
params = fit.params
forecast = fit.predict(params.all(), start='2015-9-21', end='2016-9-21', typ='levels')
It worked well (i.e. giving me a result, but not an out-of-sample one...) when I only used
forecast = fit.predict(params.all(), typ='levels')
but when I added "start" and "end" dates (or only "start") it doesn't want to work, I constantly get errors. In case of the first cited chunk of code its: "TypeError: predict() got multiple values for keyword argument 'start'". I also tried with datetime type and it also didn't work. Can anyone help me with it?
paramsas an argument. tryfit.predict(start='2015-9-21', end='2016-9-21', typ='levels')