1

在函数中传递参数的值start_p应该使参数搜索从 4 开始,即4auto_arima()

(4,x,x)(x,x,x,x) 但它从 (0,x,​​x)(x,x,x,x) 开始,完全避免了参数4

import pandas as pd
from pmdarima import auto_arima

train_df = pd.read_csv('https://raw.githubusercontent.com/vyaduvanshi/helper-files/master/train_SO.csv')
auto_arima(train_df.new_cases, start_p=4, d=0, start_q=0, max_p=5, max_d=0, max_q=5,
           start_P=0, D=0, start_Q=0, max_P=5, max_D=0, max_Q=5, seasonal=True, m=7, maxiter=200, trace=True,
           information_criterion='aic', with_intercept=False, stepwise=False, max_order=None)

这是我运行代码后的样子-

 ARIMA(0,0,0)(0,0,0)[7]             : AIC=13942.223, Time=0.01 sec
 ARIMA(0,0,0)(0,0,1)[7]             : AIC=13625.127, Time=0.06 sec
 ARIMA(0,0,0)(0,0,2)[7]             : AIC=13572.472, Time=0.11 sec
 ARIMA(0,0,0)(0,0,3)[7]             : AIC=13573.420, Time=0.22 sec
 ARIMA(0,0,0)(0,0,4)[7]             : AIC=13591.829, Time=0.40 sec
 ARIMA(0,0,0)(0,0,5)[7]             : AIC=13612.307, Time=1.04 sec
 ARIMA(0,0,0)(1,0,0)[7]             : AIC=inf, Time=0.08 sec
...
...
...
4

0 回答 0