forecast_length: <integer> (Optional)

Description

Turns a node regression problem into a forecasting problem. The given target is forecasted for forecast_length steps into the future. This only applies to temporal queries (queries that include a temporal aggregation such as SUM(TRANSACTIONS.AMOUNT, 0, 2, days)). The unit of the forecasting step is the same as the unit in the aggregation.

Supported Task Types

  • Forecasting

Example

In the following query, a value of forecast_length=3will forecast the sum for the next 3 weeks.

PREDICT SUM(TRANSACTIONS.AMOUNT, 0, 3, weeks)
FOR EACH CUSTOMERS.CUSTOMER_ID

Experimental Feature