Skip to content

BenchmarkConfig

BenchmarkConfig dataclass

BenchmarkConfig(issue_times: DatetimeIndex, observation_safety_lag: str, context_window: str | None = '14D', primary_metric: PrimaryMetric = 'rmse', reference_model: str | None = None, subset: Literal['all_intervals', 'reference_point_daylight'] = 'all_intervals', on_error: Literal['strict', 'continue'] = 'continue', training_issue_times: DatetimeIndex | None = None, fit_time: str | None = None, lightgbm: LightGBMConfig = LightGBMConfig(), t0: T0Config = (lambda: T0Config(local_files_only=True))(), chronos: ChronosConfig = (lambda: ChronosConfig(local_files_only=True))())

Explicit day-ahead schedule and information assumptions.

Parameters:

Name Type Description Default
issue_times DatetimeIndex

Ordered, unique, timezone-aware evaluation issues. Targets are the next Brussels calendar day, including DST changes.

required
observation_safety_lag str

Required elapsed lag for EventTimeCutoff. This is an approximation, not verified publication availability or revision control.

required
context_window str or None

Issue-anchored elapsed history window; None retains all eligible history.

'14D'
training_issue_times DatetimeIndex | None

Required for LightGBM. Training target intervals must finish by the fit-time label cutoff, and fit_time must not follow the first test issue.

None
fit_time DatetimeIndex | None

Required for LightGBM. Training target intervals must finish by the fit-time label cutoff, and fit_time must not follow the first test issue.

None
primary_metric PrimaryMetric

Ranking, explicit RMSE-skill reference, scoring subset and failure policy. Default scoring includes night. Continue retains failed-origin rows.

'rmse'
reference_model PrimaryMetric

Ranking, explicit RMSE-skill reference, scoring subset and failure policy. Default scoring includes night. Continue retains failed-origin rows.

'rmse'
subset PrimaryMetric

Ranking, explicit RMSE-skill reference, scoring subset and failure policy. Default scoring includes night. Continue retains failed-origin rows.

'rmse'
on_error PrimaryMetric

Ranking, explicit RMSE-skill reference, scoring subset and failure policy. Default scoring includes night. Continue retains failed-origin rows.

'rmse'
lightgbm LightGBMConfig

Existing adapter configurations. TSFM defaults prohibit weight downloads; explicitly set local_files_only=False to allow pinned Hub acquisition.

LightGBMConfig()
t0 LightGBMConfig

Existing adapter configurations. TSFM defaults prohibit weight downloads; explicitly set local_files_only=False to allow pinned Hub acquisition.

LightGBMConfig()
chronos LightGBMConfig

Existing adapter configurations. TSFM defaults prohibit weight downloads; explicitly set local_files_only=False to allow pinned Hub acquisition.

LightGBMConfig()
Notes

Invalid schedules/durations raise ValueError. No training or I/O occurs here. Example: BenchmarkConfig(issues, observation_safety_lag='30min').

spec

spec(*, training: bool = False) -> BacktestSpec

Return the existing research specification with the same cutoff policy.