Forecast several columns at once
You have more than one number to predict per series — sales and returns, for
example. Give each one the "target" kind and both are forecast in the same
request:
Code
Post it to https://api.retrocast.com/v1-beta/forecast?model=t0-alpha.
model names the forecasting model and is required — without it the
request is rejected with missing field "model".
There is no targets field in this request. Leave it out and every column
with the "target" kind is forecast.
Forecast only some of them
To forecast a subset without editing the schema, list the columns you want in
targets:
Code
The names must be columns you declared as targets. returns stays in the
data as history the model can use, but no forecast is returned for it.
What comes back
data.targets is keyed by column name, one entry per forecast column. The
arrays below are trimmed to the first two of the 14 steps:
Code
Every target shares one time axis and one set of levels: prediction_length,
cutoff, lead_time and quantiles are set once for the request and apply
to all of them. With compute_metrics: true, each entry in metrics is
keyed by target column the same way, so you get separate scores per column.

