Metrics Overview
All metric families operate on paired one-dimensional integer label arrays. The public entry points are:
gene_calling_benchmark.benchmark_from_arrays()gene_calling_benchmark.benchmark_from_gff()
Available Metric Families
Family |
Enum |
Main question |
Key outputs |
|---|---|---|---|
Region Discovery |
|
Did the prediction find the right sections? |
Precision / recall at four nested detection tiers (neighborhood ⊇ internal / full-coverage ⊇ perfect-boundary) |
Boundary Exactness |
|
How accurate are the matched boundaries? |
IoU distribution, boundary-residual bias/reliability landscape, terminal-boundary flags |
Nucleotide Classification |
|
How well does coding vs non-coding separate per base? |
Precision / recall / F1 from the nucleotide confusion matrix |
Structural Coherence |
|
Is the transcript chain correct as a whole? |
Intron/exon chain P/R (strict, subset, superset), transcript match classes, boundary shift distribution, segment count delta, per-transcript exon recovery (recall, precision, false-exon count), donor/acceptor splice-site confusion and P/R (when splice labels are configured) |
Diagnostic Depth |
|
Where and by how much does the prediction’s structure diverge? |
Segment-length EMD, two 100-bin position-bias histograms (FN/FP) over the coding span |
Transition Analysis |
|
Where do label changes fail or appear spuriously? |
GT transition confusion matrices, false-transition counts (premature, late, spurious) |
INDEL |
|
What structural mismatch types occur? |
Categorised mismatch groups (5′/3′ extensions, whole insertions/deletions, splits, joins) |
Phase Drift |
|
Does the prediction stay in step by coding-base count where GT and prediction overlap? |
Per-position coding-phase drift (modulo 3) |
A note on Transition Analysis
Transition Analysis is requested via
STATE_TRANSITIONS. It is kept
in the default metric set (_DEFAULT_METRICS) so its outputs
(transition_failures and false_transitions) are emitted — and the plotting
layer can show a confusion-matrix view — without an explicit request. To skip
the pass entirely, pass an explicit metrics list that omits
STATE_TRANSITIONS.
Cross-cutting conventions
Coordinate semantics, strand handling, aggregation strategy, and sentinel-value behaviour are shared across every metric family. See Conventions for the full list before interpreting any metric in detail.
Recommended Online Subset
For repeated validation during training, the current W&B integration logs the following online scalar set per metric family:
Boundary Exactness
IoU mean
Region Discovery
neighborhood_hitprecision / recallinternal_hitprecision / recallfull_coverage_hitprecision / recallperfect_boundary_hitprecision / recall
Nucleotide Classification
Precision / recall / F1
Structural Coherence
Intron / exon chain match rates (including the
exon_chain_multiandexon_chain_singletiers)Segment count delta (mean, MAE)
Exon recall per transcript (mean)
Exon precision per transcript (mean)
False exon count per transcript (mean)
Exact match rate
Splice-site donor / acceptor precision & recall (when configured)
Diagnostic Depth
Length EMD (mean, MAE)
Full details in gene_calling_benchmark.log_benchmark_scalars() and
gene_calling_benchmark.log_benchmark_all_scalars().