hidden

Foundational Time Series Model Multi Series (Beta)

Based on the provided data, this endpoint predicts the future values of multiple time series at once. It takes a JSON as an input containing information like the series frequency and historical data. (See below for a full description of the parameters.) The response contains the predicted values for each series based on the input arguments. Get your token for private beta at https://nixtla.io/free-trial?utm_source=nixtla.io&utm_campaign=/docs/api-reference.

post/forecast_multi_series

Request body

fewshot_stepsinteger nullable

Deprecated. Please use finetune_steps instead.

fewshot_loss'default' | 'mae' | 'mse' | 'rmse' | 'mape' | 'smape' nullable

Deprecated. Please use finetune_loss instead.

modelstring

Model to use as a string. Common options are (but not restricted to) timegpt-1 and timegpt-1-long-horizon. Full options vary by different users. Contact support@nixtla.io for more information. We recommend using timegpt-1-long-horizon for forecasting if you want to predict more than one seasonal period given the frequency of your data.

freqstring

The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.

fhinteger

The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.

{"stackTrail":"components:schemas:MultiSeriesForecast:properties:y","oasType":"schema","type":"unknown","title":"Y","description":"The historical time series data provided as a dictionary of two colums: columns and data. The columns contains the columns of the dataframe and data contains eaach data point. For example: {\"columns\": [\"unique_id\", \"ds\", \"y\"], \"data\": [[\"ts_0\", \"2021-01-01\", 0.7], [\"ts_0\", \"2021-01-02\", 0.8]}."}
clean_ex_firstboolean

A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.

finetune_stepsinteger

The number of tuning steps used to train the large time model on the data. Set this value to 0 for zero-shot inference, i.e., to make predictions without any further model tuning.

finetune_loss'default' | 'mae' | 'mse' | 'rmse' | 'mape' | 'smape'

The loss used to train the large time model on the data. Select from ['default', 'mae', 'mse', 'rmse', 'mape', 'smape']. It will only be used if finetune_steps larger than 0. Default is a robust loss function that is less sensitive to outliers.

Response

Successful Response

{"stackTrail":"paths:/forecast_multi_series:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes