Forecasting
Zero-shot forecasting using the Mimosa foundation model.
Sulie’s SDK simplifies time series forecasting, offering both zero-shot and fine-tuned models through the Mimosa foundation model. The All-in-One plan includes 100,000 inference calls, covering both types of forecasting models.
Basic Usage
The example below demonstrates how to forecast renewable energy demand using Sulie’s forecast method.
Note: The maximum context length for time series data is 512 data points, and the maximum prediction horizon is 64 data points. For Enterprise users, these limits increase to 1024 and 128, respectively.
Parameters
Name | Description | Type |
---|---|---|
dataset | A Sulie Dataset or pd.DataFrame with your time series data. | required |
horizon | Number of time steps to forecast into the future. | required |
target | Column name for the variable to forecast. | optional |
group_by | Column name to group data by (e.g., different locations). | optional |
date | Column containing the timestamp. | optional |
aggr | Aggregation function to use when grouping (sum or mean ). | optional |
frequency | Time series frequency (e.g., H for hourly, D for daily). | optional |
model | Specifies the model to use (defaults to the latest Mimosa version). | optional |
Output
The output of the forecast function is a list of lists, with each list containing three forecasted values: the low (10th percentile), median, and high (90th percentile). These values give you a range of possible outcomes, with the median representing the most likely forecast, and the low and high values showing the potential lower and upper bounds. This helps you understand the uncertainty of the forecast and plan for different scenarios.
Advanced options
The following keyword arguments provide additional control over the inference process:
Name | Description | Default |
---|---|---|
temperature | Adjusts diversity in generated samples (higher values increase variety). | 1.0 |
top_k | Limits the set of options considered in each generation step. | 50 |
num_samples | Sets the number of samples for probabilistic forecasts. | 50 |