如何使用Python中的Auto_arima在样本中安装样本值?

发布于 2025-02-10 10:32:21 字数 275 浏览 2 评论 0 原文

我在获取样本外的预测时没有问题,但是我似乎找不到一种显示合适的样本中的方法。

model = auto_arima(y = training_set['Y'],
                  m = 12,
                  seasonal = True,
                  stepwise = False)

predictions = model.predict(n_periods = test_period)
predictions

I have no problem in getting the forecast out-of sample values but I can't seem to find a way to show the fitted in-sample ones.

model = auto_arima(y = training_set['Y'],
                  m = 12,
                  seasonal = True,
                  stepwise = False)

predictions = model.predict(n_periods = test_period)
predictions

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

染墨丶若流云 2025-02-17 10:32:21

您可以使用Arima模型对象的 prective_in_sample()方法

samples = model.predict_in_sample()

您还可以在2个Integer位置之间检索样品

preenjed_in_sample:https://alkaline-ml.com/pmdarima/modules/generated/pmdarima.arima.ARIMA 。


https://github.com/alkaline-ml/alkaline-ml/pmdarima/pmdarima/pmdarima/pmdarima/sissues/140

You can use the predict_in_sample() method of your ARIMA model object

samples = model.predict_in_sample()

You can also retrieve the in sample values between 2 integer positions

predict_in_sample: https://alkaline-ml.com/pmdarima/modules/generated/pmdarima.arima.ARIMA.html?#pmdarima.arima.ARIMA.predict_in_sample

It appears there was an issue with this model that has been resolved in the current version.
https://github.com/alkaline-ml/pmdarima/issues/140

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文