【问题标题】:automate to estimate best parameter in auto_arima using pyton使用 python 自动估计 auto_arima 中的最佳参数
【发布时间】:2020-05-22 10:45:54
【问题描述】:

任何人都可以帮助我估计自动 arima 的最佳参数。

我正在使用以下脚本,但不确定如何从模型摘要中提取最佳参数。

from pmdarima import auto_arima 

# Fit auto_arima function to dataset 
stepwise_fit = auto_arima(dataset['column1'], start_p = 1, start_q = 1, 
                          max_p = 3, max_q = 3, m = 12, 
                          start_P = 0, seasonal = True, 
                          d = None, D = 1, trace = True, 
                          error_action ='ignore',   # we don't want to know if an order does not work 
                          suppress_warnings = True,  # we don't want convergence warnings 
                          stepwise = True)           # set to stepwise 

# To print the summary 
stepwise_fit.summary()

<class 'statsmodels.iolib.summary.Summary'>
"""
                                      SARIMAX Results                                       
============================================================================================
Dep. Variable:                                    y   No. Observations:                  323
Model:             SARIMAX(1, 0, 0)x(0, 1, [1], 12)   Log Likelihood               -2989.363
Date:                              Fri, 22 May 2020   AIC                           5986.726
Time:                                      16:14:35   BIC                           6001.685
Sample:                                           0   HQIC                          5992.705
                                              - 323                                         
Covariance Type:                                opg                                         
==============================================================================

请指教。

【问题讨论】:

    标签: python time-series pmdarima


    【解决方案1】:

    你应该这样做:

    stepwise_fit.order 
    stepwise_fit.seasonal_order
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-19
      • 2017-05-19
      • 2021-05-12
      • 2018-12-27
      • 2016-09-24
      • 2012-12-27
      • 1970-01-01
      • 2021-01-08
      相关资源
      最近更新 更多