[英]How to get fitted in-sample values using auto_arima in python?
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
You can use the predict_in_sample()
method of your ARIMA model object您可以使用 ARIMA model object 的predict_in_sample()
方法
samples = model.predict_in_sample()
You can also retrieve the in sample values between 2 integer positions您还可以检索 2 个 integer 位置之间的样本值
predict_in_sample: https://alkaline-ml.com/pmdarima/modules/generated/pmdarima.arima.ARIMA.html?#pmdarima.arima.ARIMA.predict_in_sample 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.此 model 似乎存在问题,已在当前版本中解决。 https://github.com/alkaline-ml/pmdarima/issues/140 https://github.com/alkaline-ml/pmdarima/issues/140
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.