backtest
backtest ¤
Minimal hit-count backtest for lambda rules.
The first-slice MVP supports "run rule, count hits" only — no
label-matching, no precision/recall. The returned
:class:BacktestResult still carries the full :class:EventLog so the
caller can inspect any individual hit and run their own downstream
analysis (e.g. to_event_log_xes for pm4py, filter_by_pack for
domain-specific drill-down).
run_backtest ¤
run_backtest(
detector: LambdaDetector,
df: DataFrame,
*,
objects: Mapping[str, object] | None = None,
qualifiers: Mapping[str, str] | None = None
) -> BacktestResult
Run detector over df and summarize hit counts.