create_openstef4_preset_backtest_forecaster#
- openstef_beam.benchmarking.baselines.openstef4.create_openstef4_preset_backtest_forecaster(workflow_config: ForecastingWorkflowConfig | EnsembleForecastingWorkflowConfig, backtest_config: BacktestForecasterConfig | None = None, cache_dir: Path = Path('cache')) ForecasterFactory[BenchmarkTarget][source]#
Create a factory that returns an OpenSTEF4BacktestForecaster for a benchmark target.
- Parameters:
workflow_config (
ForecastingWorkflowConfig|EnsembleForecastingWorkflowConfig) – The configured ForecastingWorkflowConfig that will be cloned and assigned to a target-specific workflow instance.backtest_config (
BacktestForecasterConfig|None) – Optional BacktestForecasterConfig to control training/prediction windows. If None, a sensible default is created.cache_dir (
Path) – Directory to store cached artifacts for created forecasters. A subdirectory will be created per benchmark run and target.workflow_config
backtest_config
cache_dir
- Returns:
A ForecasterFactory[BenchmarkTarget] partial which accepts a BenchmarkContext and a BenchmarkTarget and returns a configured OpenSTEF4BacktestForecaster.
- Return type:
GenericAlias[BenchmarkTarget]