Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x Statsmodel v0.12.0 FutureWarning:参数名称将在0.12发布后更改_Python 3.x_Time Series_Statsmodels - Fatal编程技术网

Python 3.x Statsmodel v0.12.0 FutureWarning:参数名称将在0.12发布后更改

Python 3.x Statsmodel v0.12.0 FutureWarning:参数名称将在0.12发布后更改,python-3.x,time-series,statsmodels,Python 3.x,Time Series,Statsmodels,我在pandas中有这个数据集,数据帧的名称是train: date value 2017-01-09 0.331836 2017-01-10 0.330815 2017-01-11 0.329794 2017-01-12 0.328773 2017-01-13 0.327752 ... ... 2020-05-29 0.254081 2020-05-30 0.267420 2020-05-31 0.280758 2020-06-01 0.29409

我在
pandas
中有这个数据集,数据帧的名称是
train

date         value  
2017-01-09  0.331836
2017-01-10  0.330815
2017-01-11  0.329794
2017-01-12  0.328773
2017-01-13  0.327752
...     ...
2020-05-29  0.254081
2020-05-30  0.267420
2020-05-31  0.280758
2020-06-01  0.294097
2020-06-02  0.309384
日期列是索引,我的最晚日期是2020-06-02。我使用以下代码进行预测:

from statsmodels.tsa.ar_model import AutoReg,ar_select_order
f = 14
mod = ar_select_order(train[y_col].ravel(), maxlag=15)
AutoRegfit = AutoReg(train[y_col].ravel(), trend='c', lags=mod.ar_lags).fit()
AutoRegfit.predict(start=len(train),end=len(train)+f-1,dynamic=False)
我得到:

 FutureWarning: The parameter names will change after 0.12 is released. Set old_names to False to use the new names now. Set old_names to True to use the old names.

这是什么意思?

这只是一个警告,在摘要和其他地方用于变量的名称将从0.13开始更改。您可以设置参数
old_names=False
以使用新名称并停止显示警告。谢谢,此参数应该在哪里?在
AutoReg
predict
中,应将此参数添加到
AutoReg