MCPcopy Create free account
hub / github.com/breeze-sys/Label-Only-MIA-Go / parse_args

Function parse_args

scripts/evaluation/eval.py:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def 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
21def calculate_thresholds(reference_dists):
22 """Calculate reference thresholds from boundary distance groups."""

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected