Fix calibration f1 metric fallback
This commit is contained in:
@@ -22,6 +22,7 @@ def test_detection_calibration_sweep_reuses_real_data_workflow_and_reports_qa_me
|
||||
assert "false_positives" in script
|
||||
assert "false_negatives" in script
|
||||
assert "quality_score" in script
|
||||
assert 'metrics.get("f1")' in script
|
||||
assert "best_by_score" in script
|
||||
assert "calibration_summary.json" in script
|
||||
assert "demo/workflow" not in script
|
||||
|
||||
@@ -159,7 +159,7 @@ summary = {
|
||||
"quality_score": quality_check.get("score"),
|
||||
"precision": metrics.get("precision"),
|
||||
"recall": metrics.get("recall"),
|
||||
"f1_score": metrics.get("f1_score"),
|
||||
"f1_score": metrics.get("f1_score", metrics.get("f1")),
|
||||
"mean_iou": metrics.get("mean_iou"),
|
||||
"matches": findings.get("matches"),
|
||||
"false_positives": findings.get("false_positives"),
|
||||
|
||||
Reference in New Issue
Block a user