Gil-Simas commited on
Commit
a90cb74
·
1 Parent(s): c29fdef

results -> result

Browse files
Files changed (1) hide show
  1. user-friendly-metrics.py +2 -2
user-friendly-metrics.py CHANGED
@@ -175,8 +175,8 @@ class UserFriendlyMetrics(evaluate.Metric):
175
  chart_data = {key: [] for key in categories.keys()}
176
 
177
  # Log overall metrics
178
- if "overall" in results:
179
- for overall_key, overall_metrics in results["overall"].items():
180
  for metric, value in overall_metrics["all"].items():
181
  log_key = (
182
  f"{wandb_section}/overall/{overall_key}/{metric}"
 
175
  chart_data = {key: [] for key in categories.keys()}
176
 
177
  # Log overall metrics
178
+ if "overall" in result:
179
+ for overall_key, overall_metrics in result["overall"].items():
180
  for metric, value in overall_metrics["all"].items():
181
  log_key = (
182
  f"{wandb_section}/overall/{overall_key}/{metric}"