Explain the following text. If historicalforecasts are provided, the metric (given by…
- User
Explain the following text.
If historical_forecasts are provided, the metric (given by the metric function) is evaluated directly on the forecast and the actual values. The same series must be passed that was used to generate the historical forecasts. Otherwise, it repeatedly builds a training set: either expanding from the beginning of series or moving with a fixed length train_length. It trains the current model on the training set, emits a forecast of length equal to forecast_horizon, and then moves the end of the training set forward by stride time steps. The metric is then evaluated on the forecast and the actual values. Finally, the method returns a reduction (the mean by default) of all these metric scores.
- Assistant
This text describes a procedure for evaluating a forecasting model using a specified metric. Here's a breakdown of the process:
-
Use of Historical Forecasts:
- If historical forecasts are available, the evaluation metric is directly calculated by comparing these forecasts with the actual observed values.
- It is crucial to ensure that the series of actual values used in this comparison is the same series that was used to generate the historical forecasts.
-