statsmodels,时间序列预测样本外错误

时间:2016-05-16 13:32:53

标签: python time-series statsmodels

我的数据:

ipdb> dta
             plays
2015-03-01   401.0
2015-03-02   350.0
2015-03-03   448.0
2015-03-04   490.0
...            ...
2015-08-23   655.0
2015-08-24   731.0
2015-08-25   684.0
2015-08-26   774.0
2015-08-27   808.0
2015-08-28   732.0
2015-08-29   694.0
2015-08-30   798.0

数据从2015-03-01到2015-08-30开始,我想预测未来的价值。

我的代码snippt

arma_mod30 = sm.tsa.ARMA(dta, (d_level, 0)).fit()
result = arma_mod30.predict('2015-09-01', '2015-10-30', dynamic=True)

但是预测函数返回了fllowing错误:

ValueError: date 2015-09-01 00:00:00 not in date index. Try giving a date that is in the dates index or use an integer

如何预测未在日期索引中的未来日期?谢谢!

0 个答案:

没有答案
相关问题