python - 使用 pyton 自动估计 auto_arima 中的最佳参数
问题描述
任何人都可以帮助我估计自动 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
==============================================================================
请指教。
解决方案
你应该做:
stepwise_fit.order
stepwise_fit.seasonal_order
推荐阅读
- javascript - 如何使用 Javascript 在 Outlook 中安排约会?
- react-native - React Native - 两次启动动画,未定义的错误启动
- javascript - 如何设置距离 amchart 折线图工具提示
- c - CMake 编译在 MSYS2 上失败
- regex - 使用正则表达式解析字符串
- java - Java:通过 ID 而非名称进行类型识别?
- postgresql - 如何将值从其他表中的自动增量值插入表中:postgressql(更新和插入两个表)
- web-services - IIB SOAP 用户密码 提供者端认证
- android - 当意图传递给其他活动时,为什么从 parcelable 中得到错误的值?
- html - 类型更改后页脚部分不再居中