Spaces:
Sleeping
Sleeping
recognized
Browse files- user-friendly-metrics.py +2 -0
user-friendly-metrics.py
CHANGED
|
@@ -153,7 +153,9 @@ def calculate(predictions,
|
|
| 153 |
summary["num_gt_ids"] = unique_gt_ids
|
| 154 |
|
| 155 |
for th in recognition_thresholds:
|
|
|
|
| 156 |
summary[f'recognition_{th}'] = recognition(tr_ratios, th)/unique_gt_ids
|
|
|
|
| 157 |
|
| 158 |
return summary
|
| 159 |
|
|
|
|
| 153 |
summary["num_gt_ids"] = unique_gt_ids
|
| 154 |
|
| 155 |
for th in recognition_thresholds:
|
| 156 |
+
recognized = recognition(tr_ratios, th)
|
| 157 |
summary[f'recognition_{th}'] = recognition(tr_ratios, th)/unique_gt_ids
|
| 158 |
+
summary[f'recognized_{th}'] = recognized
|
| 159 |
|
| 160 |
return summary
|
| 161 |
|