Rule Type: Forecast

The Machine Learning function provides the rule type Forecast to train and use time-series predictive models based on input data. It runs several models (for example, linear regression, or exponential smoothing) on historical data to determine the best model trained from the input dataset. It also predicts future values with this model for a specific measure. The forecasted values can be used later in other functions. The prediction is only applied to the specific selected measure. However, input data is replaced in the output if you choose to run a forecast over a field that contains historical data.

Rule Input Fields

You can use the following input fields for configuration:
  • Date Field: Specifies the date field for the time series

  • End Date: Specifies the end date as a constant or parameter of the historical data

  • Signal Field: Specifies the field from which the values are used for the forecast

  • Excluded Fields: List of fields that are not relevant for the forecast, or those fields whose impact should be excluded from the forecast

  • Forecast Period: Period for which the forecast is executed

  • Forecast Unit: Period unit for the number of periods (for example, year, quarter, or month)

  • Forecast Method: Specifies the forecasting algorithm

  • Positive Forecast: Defines whether only positive forecasted values are generated

  • Segmented By: Defines which fields are segmented based on the input dataset in case of multiple independent forecasts

Rule Output Fields

You can use the following output fields for configuration:
  • Forecast Field: The field in which the system writes the forecast result from the signal field

  • Model: An optional field containing the trained or used model ID that is automatically assigned by the forecast algorithm. It is a characteristic field type and we recommend you use a length of 30 characters.