对于p
、d
、q
和一系列数字rollRate
的典型整数值,以下代码:
fit = statsmodels.api.tsa.ARIMA(rollRate, (p,d,q)).fit()
forecast = fit.predict(start=len(rollRate),
end = len(rollRate)+11,
typ = 'levels')
我不明白这是一个错误:
File "C:...\Anaconda3\lib\site-packages\statsmodels\base\wrapper.py", line 92, in wrapper return data.wrap_output(func(results, *args, **kwargs), how)
TypeError: predict() got an unexpected keyword argument 'typ'
我也成功地预测了其他列表变量,但是这个特定的列表给了我一个错误。你知道为什么predict()
在the source code says that it can时不接受{
啊,我明白了。你没有ARIMA模型。你有一个ARMA模型是因为
d=0
。ARMA.predict
不接受typ
关键字参数,因为它们不需要关键字参数。在相关问题 更多 >
编程相关推荐