[英]python statsmodels: “params” parameter for predict function of arima models
ARIMA ( statsmodels.tsa.arima_model.ARIMA
), AR ( statsmodels.tsa.ar_model.AR
), and ARMA ( statsmodels.tsa.arima_model.ARMA
) in statsmodels all take in the parameters of their model in their predict
method. 统计模型中的ARIMA( statsmodels.tsa.arima_model.ARIMA
),AR( statsmodels.tsa.ar_model.AR
)和ARMA( statsmodels.tsa.arima_model.ARMA
)都在其predict
方法中接受其模型的参数。 For example, for the AR object, we have the following function definitions: 例如,对于AR对象,我们有以下函数定义:
AR(endog, dates=None, freq=None, missing='none')[source]
fit([maxlag, method, ic, trend, ...])
predict(params[, start, end, dynamic])
( Link to documentation here ) ( 链接到这里的文档 )
I'm actually very confused about the parameter choices for predict
. 我实际上对predict
的参数选择非常困惑。 predict
's first parameter is the parameters to the constructor of AR
; predict
的第一个参数是AR
构造函数的参数; it doesn't make sense that these once again appear in the parameter for predict
. 这些再次出现在predict
参数中是没有意义的。 They also appear for the constructors for ARIMA
and ARMA
. 它们也出现在ARIMA
和ARMA
的构造函数中。 Can someone answer why this parameter exists? 有人可以回答为什么这个参数存在?
For what its worth, I don't have much background in time series analysis, so perhaps there is some functionality that is exposed when reusing parameters. 对于它的价值,我没有太多的时间序列分析背景,所以也许在重用参数时会暴露一些功能。 Otherwise, this parameter is a nuisance. 否则,此参数是令人讨厌的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.