Skip to main content

Module metrics

Module metrics 

Source
Expand description

Swarm W — evaluation metrics (synthetic always; real H1 when corpus supplied).

Synthetic and real metrics are never mixed into one score.

Structs§

MetricsReport

Functions§

evaluate_real_held_out
Placeholder for H1 real eval: caller supplies (image, gt) pairs. Returns None if empty — never invents real metrics.
evaluate_synthetic
Run detector on n synthetic test samples; returns mean match accuracy vs GT.
mean_best_iou
Mean IoU of best-matching same-class pairs (diagnostic).