SingleSampleForecastPayload
Parameters
sample_id
Type:Any
Unique identifier for the sample. Must match the input sample_id.
timestamps
Type:List[str]
List of timestamp strings for the forecasted values. Must be in ISO format or compatible with pandas datetime parsing.
values
Type:List[Optional[float]]
List of forecasted values corresponding to timestamps. None values represent missing or invalid forecasts.
model_name
Type:str
Name of the model used to generate the forecast. Must be a non-empty string.
Raises
ValueError
- If timestamps or values lists are empty
- If timestamps and values have mismatched lengths
- If model_name is empty or whitespace
Notes
- NaN values in values are converted to None for JSON compatibility
- model_name is automatically trimmed of whitespace
- Each forecast represents predictions for one time series column
Examples
Basic Forecast
Forecast with Missing Values
See Also
- SingleEvalSamplePayload : Input sample for forecasting
- ForecastV2Response : Container for multiple forecast results