开始使用免费开始使用

Ensemble forecast for new product

Now that you have two different types of forecasts - a time series and a regression - let's try to ensemble them together to improve the forecast. Your forecast objects for_MET_sp_xts and pred_MET_sp_xts are in your workspace along with your validation data object MET_sp_v.

本练习是课程的一部分

Forecasting Product Demand in R

查看课程

练习说明

  • Take the average of your two forecasts.
  • Calculate the MAPE of this ensemble forecast.

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Ensemble the two forecasts
for_MET_sp_en <- (___ + ___)/2

# Calculate the MAPE
MAPE <- mape(___, ___)
print(MAPE)
编辑并运行代码