| 11 | |
| 12 | |
| 13 | def parse_args(): |
| 14 | parser = argparse.ArgumentParser(description="LabelScan-Go offline evaluation helper") |
| 15 | parser.add_argument("--ref", type=str, default="data/baseline_dists.json", help="Reference baseline stats output from Go") |
| 16 | parser.add_argument("--test", type=str, default="data/audit_results.json", help="Audit results output from Go") |
| 17 | parser.add_argument("--out", type=str, default="audit_report.csv", help="Output audit report path") |
| 18 | parser.add_argument("--plot", type=str, default="risk_map.png", help="Output 2D risk map path") |
| 19 | return parser.parse_args() |
| 20 | |
| 21 | def calculate_thresholds(reference_dists): |
| 22 | """Calculate reference thresholds from boundary distance groups.""" |