为什么SARIMA在预测负增长时会出错?

时间:2019-03-05 20:55:08

标签: python python-2.7 jupyter-notebook data-science arima

我正在使用SARIMA模型,只要它看到趋势达到0,就会停止并给我错误。

q有数据。

my_order =(0,1,0)     my_seasonal_order =(1、1、1、12)

model = SARIMAX(q, order=my_order, seasonal_order=my_seasonal_order)
start_params = [0, 0, 1.]
results = model.fit(start_params)
#model_fit = model.fit()

yhat = results.forecast(steps=24).reset_index()

只要趋势接近0,就在代码STOP中添加什么。这样它就不会再给我错误了。

0 个答案:

没有答案