Forecasting
Multivariate series
When one series has several targets that move together, such as electricity load and price, the model can forecast them jointly, so each target’s forecast reads the others.
In a DataFrame
Section titled “In a DataFrame”Name the targets with target_col:
fc = model.forecast(grid, h=24, target_col=["load", "price"])The result gets a target column saying which target each row is for: ds, target, q10, median, q90.
With arrays
Section titled “With arrays”Give each series as a (V, T) array of its V targets, inside a list, or stack several such series into (N, V, T):
fc = model.forecast([y], h=24)[0] # y: (V, T) -> (V, h, Q)fc = model.forecast(Y, h=24) # Y: (N, V, T) -> (N, V, h, Q)Related series
Section titled “Related series”Separate series that are not targets of one series, such as the stores of one chain, can still help each other. With
cross_series=True, single-target series without covariates are read 16 at a time, so the model sees their neighbours:
fc = model.forecast(df, h=7, cross_series=True) # or a group size, e.g. cross_series=32
