Spaces:
Sleeping
Sleeping
remove model from log_key
Browse files- user-friendly-metrics.py +14 -15
user-friendly-metrics.py
CHANGED
@@ -176,21 +176,20 @@ class UserFriendlyMetrics(evaluate.Metric):
|
|
176 |
|
177 |
# Log overall metrics
|
178 |
if "overall" in result:
|
179 |
-
for
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
chart_data[category].append([metric, value])
|
194 |
print("----------------------------------------------------")
|
195 |
|
196 |
if log_plots:
|
|
|
176 |
|
177 |
# Log overall metrics
|
178 |
if "overall" in result:
|
179 |
+
for metric, value in overall_metrics["overall"]["all"].items():
|
180 |
+
log_key = (
|
181 |
+
f"{wandb_section}/overall/{metric}"
|
182 |
+
if wandb_section
|
183 |
+
else f"overall/{metric}"
|
184 |
+
)
|
185 |
+
run.log({log_key: value})
|
186 |
+
|
187 |
+
if debug:
|
188 |
+
print(f" {log_key} = {value}")
|
189 |
+
|
190 |
+
for category, metrics in categories.items():
|
191 |
+
if metric in metrics:
|
192 |
+
chart_data[category].append([metric, value])
|
|
|
193 |
print("----------------------------------------------------")
|
194 |
|
195 |
if log_plots:
|