Skip to main content

Module metrics

Module metrics 

Source
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§

PerMotifMetrics

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 factor and return the per-motif F1 delta. Caller does the rerun; this just computes the deltas.
stability_under_perturbation
Stability-under-perturbation scalar metric.