Technical Deep Dive, Forecasting, Data Science, Model Validation, Evaluation Metric.
Seasonal Avarage Forecast def moving_av_forecast(history, k, horizon): for i in range(horizon): history.append(sum(history[-k:]) / k) return history[(len(history) - horizon): ] As an example, let’s construct forecasts using the previously discussed models on the “airpassengers” dataset. Our