Python ARIMA 样本外预测

问题描述 投票:0回答:0

我正在尝试根据样本预测制作 ARIMA。以下是我的代码的一部分

n_periods = 8
(confint, fc) = con_fc
con_fc = arima_model_results.predict(n_periods=n_periods, return_conf_int=True)

index_of_fc = np.arange(len(df2_val), len(df2_val)+n_periods)

我收到错误消息:

      1 n_periods = 8
----> 2 (confint, fc) = con_fc
      3 con_fc = arima_model_results.predict(n_periods=n_periods, return_conf_int=True)
      4 
      5 index_of_fc = np.arange(len(df2_val), len(df2_val)+n_periods)

ValueError: too many values to unpack (expected 2)

尝试了不同的网站但没有找到答案

python forecasting arima
© www.soinside.com 2019 - 2024. All rights reserved.