在 pyramid 包中向 auto arima 添加外生变量
adding exogeneous variables to auto arima in pyramid package
我非常喜欢 r 中的 auto.arima,如下例所示。我很高兴听到金字塔包中有一个 python 版本,(示例如下。)
有谁知道在训练模型时是否可以在金字塔版本中添加预测变量或外生变量?在 r 版本中,您将它们添加到 xreg 参数中。
r 代码:
auto.arima(df, xreg=pred_df)
python代码:
from pyramid.arima import auto_arima
auto_arima(df)
更新:
我找到了答案:
auto_arima(df, exogeneous=pred_df)
有人知道金字塔是否适用于 python 2.7 吗?
Pyramid 确实适用于 Python 2.7。我现在 运行 是一名模特。
我非常喜欢 r 中的 auto.arima,如下例所示。我很高兴听到金字塔包中有一个 python 版本,(示例如下。)
有谁知道在训练模型时是否可以在金字塔版本中添加预测变量或外生变量?在 r 版本中,您将它们添加到 xreg 参数中。
r 代码:
auto.arima(df, xreg=pred_df)
python代码:
from pyramid.arima import auto_arima
auto_arima(df)
更新:
我找到了答案:
auto_arima(df, exogeneous=pred_df)
有人知道金字塔是否适用于 python 2.7 吗?
Pyramid 确实适用于 Python 2.7。我现在 运行 是一名模特。