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: BaseConfig

Declarative 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 backend config.

Parameters:
model: Literal['chronos2']#

Foundation model family to use.

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.

quantiles: list[Quantile]#

Quantile levels to predict.

horizons: list[LeadTime]#

Forecast horizons to predict.

target_column: str#

Name of the target column to forecast.

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.

run_name: str | None#

Optional name for this workflow run.

experiment_tags: dict[str, str]#

Optional metadata tags for experiment tracking.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'protected_namespaces': ()}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].