ForecastingWorkflowConfig#
- class openstef_foundation_models.presets.ForecastingWorkflowConfig(*, model: ~typing.Literal['chronos2'] = 'chronos2', checkpoint: ~openstef_foundation_models.models.checkpoint.LocalCheckpoint | ~openstef_foundation_models.models.checkpoint.HubCheckpoint = HubCheckpoint(kind='hub', repo_id='OpenSTEF/chronos-2-onnx', filename='chronos-2.onnx', metadata_filename=None, revision=None, repo_type='model', local_dir=None), quantiles: list[~openstef_core.types.Quantile] = [0.5], horizons: list[~openstef_core.types.LeadTime] = [LeadTime('P2D')], target_column: str = 'load', selected_features: ~openstef_models.utils.feature_selection.FeatureSelection = <factory>, backend: ~openstef_foundation_models.presets.forecasting_workflow.OnnxBackendConfig = <factory>, chronos2_hyperparams: ~openstef_foundation_models.models.forecasting.chronos2_forecaster.Chronos2HyperParams = <factory>, model_id: ~openstef_models.mixins.model_serializer.ModelIdentifier = 'chronos2', run_name: str | None = None, experiment_tags: dict[str, str] = <factory>)[source]#
Bases:
BaseConfigDeclarative configuration for a foundation-model forecasting workflow.
Selects a model family and the checkpoint that backs it, the requested quantiles and horizons, the target column, and the columns to keep before forecasting. Every kept non-target column is treated as a known covariate, so weather forecasts condition the prediction. Compute settings (execution providers, session options) live on the nested
backendconfig.- Parameters:
model (
Literal['chronos2'])checkpoint (
LocalCheckpoint|HubCheckpoint)target_column (
str)selected_features (
FeatureSelection)backend (
OnnxBackendConfig)chronos2_hyperparams (
Chronos2HyperParams)model_id (
ModelIdentifier)
- checkpoint: LocalCheckpoint | HubCheckpoint#
Checkpoint (weights + metadata) to load and run. Defaults to the published OpenSTEF Chronos-2 dynamic ONNX checkpoint on the HuggingFace Hub. Pick a size and variant with `Chronos2.<SIZE>.checkpoint(…)`, or pass a LocalCheckpoint to run a file already on disk.
- selected_features: FeatureSelection#
Columns to keep before forecasting. Defaults to all columns. Every kept non-target column is forwarded to the model as a known covariate. Must include the target column.
- backend: OnnxBackendConfig#
Inference backend (compute) configuration: execution providers and session options.
- chronos2_hyperparams: Chronos2HyperParams#
Hyperparameters for the Chronos-2 forecaster.
- model_id: ModelIdentifier#
Unique identifier for the workflow model.