baselines
Reference baselines for DoTime benchmark suites.
A small registry maps baseline names to constructors, so the CLI and the
evaluation harness can request a baseline by string (mirroring the
BASELINE_STRING_TO_CLASS table in the original tscm_identifiability.py).
Public surface
Baseline— the predict interface every baseline implements.available()— list registered baseline names.get()— instantiate a baseline by name.register()— decorator to add a baseline to the registry.
Implemented: the trivial baselines (Zero, Mean/TrajMean, AR1,
VAR-OLS), the classical structural baselines (BackDoorOLS, IV2SLS),
Oracle (stored ground truth), and DoOverTimePFN (checkpoint-backed, the
[models] extra). PCMCI+ / BayesianITS / Chronos require the
[baselines] extra and raise an actionable error until that dependency and
their wiring are present.
- class dotime.baselines.Baseline(*args, **kwargs)[source]
Bases:
ProtocolPredict interventional outcomes for an episode’s queries.
Implementations return a 1-D tensor aligned with
episode.query_target/episode.query_time— one predicted value per query.