Expand description
Operational evaluation metrics.
All metrics are computed against perturbation ground-truth windows; for real-data runs without ground truth, the harness reports only the ground-truth-free metrics (compression ratio, replay determinism, elasticity).
Definitions follow §8 of the paper exactly so that the numbers in the results tables can be re-derived from this file alone.
Structs§
Functions§
- cross_
signal_ agreement - Cross-signal agreement per episode and per-motif mean.
- evaluate
- Compute per-motif precision / recall / F1 / TTD against perturbation
windows. An episode is a TP if its
[t_start, t_end]overlaps the matching-class perturbation window for the same channel. - f1_
delta - Elasticity report: rerun the grammar with thresholds scaled by
factorand return the per-motif F1 delta. Caller does the rerun; this just computes the deltas. - stability_
under_ perturbation - Stability-under-perturbation scalar metric.