0

我正在我的数据上构建 ARIMA 模型,当我尝试检查 Measure Accuracy errors 时,它会打印 NA!

我不知道我错过了哪里。请问有人有建议吗?

 accuracy(forecast_data, test_data)
$Models
   Call              $Fit.criteria
                 "Min.max.accuracy MAE MAPE MSE RMSE NRMSE.mean NRMSE.median
"Not supported"   NA                NA   NA  NA   NA  NA           NA
"Not supported"   NA                NA   NA  NA   NA  NA           NA
"Not supported"   NA                NA   NA  NA   NA  NA           NA
"Not supported"   NA                NA   NA  NA   NA  NA           NA
          

这是我的代码:

auto_ARIMA <- auto.arima(training_data, trace=TRUE, ic ="aicc", approximation=FALSE, stepwise=FALSE)
forecast_data <- forecast(object=test_data, model= auto_ARIMA)
accuracy(forecast_data, test_data)

我的数据是时间序列格式,没有 NA..

任何帮助将不胜感激。

更新:

这是 dput(training_data) & dput(test_data) 打印的部分内容:

dput(training_data)
c(601L, 215L, 147L, 275L, 707L, 1509L, 2118L, 1506L, 1439L, 1745L, 
1882L, 1773L, 1752L, 1773L, 1727L, 1823L, 1860L, 2020L, 1744L, 
1670L, 1498L, 1372L, 1262L, 723L, 313L, 166L, 129L, 252L, 695L, 
1510L, 2051L, 1484L, 1417L, 1838L, 1756L, 1740L, 1756L, 1675L)

dput(training_data)
c(601L, 215L, 147L, 275L, 707L, 1509L, 2118L, 1506L, 1439L, 1745L, 
1882L, 1773L, 1752L, 1773L, 1727L, 1823L, 1860L, 2020L, 1744L, 
1670L, 1498L, 1372L, 1262L, 723L, 313L, 166L, 129L, 252L, 695L, 
1510L, 2051L, 1484L, 1417L, 1838L, 1756L, 1740L, 1756L, 1675L)
4

0 回答 0