Gil-Simas commited on
Commit
f069532
·
1 Parent(s): 48b020e

bug in nesting

Browse files
Files changed (1) hide show
  1. user-friendly-metrics.py +1 -1
user-friendly-metrics.py CHANGED
@@ -251,7 +251,7 @@ def calculate_from_payload(payload: dict,
251
  sequence_metrics = realize_metrics(sequence_metrics, recognition_thresholds)
252
  metrics_per_sequence[sequence][model]["all"] = sequence_metrics
253
 
254
- metrics_global[model]["all"] = sum_dicts(metrics_global[model], sequence_metrics)
255
  metrics_global[model]["all"] = realize_metrics(metrics_global[model]["all"], recognition_thresholds)
256
 
257
  for filter, filter_ranges in filters.items():
 
251
  sequence_metrics = realize_metrics(sequence_metrics, recognition_thresholds)
252
  metrics_per_sequence[sequence][model]["all"] = sequence_metrics
253
 
254
+ metrics_global[model]["all"] = sum_dicts(metrics_global[model]["all"], sequence_metrics)
255
  metrics_global[model]["all"] = realize_metrics(metrics_global[model]["all"], recognition_thresholds)
256
 
257
  for filter, filter_ranges in filters.items():