Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 11b5799

Browse files
authored
log metrics in alphabetical order (#4327)
1 parent 7d66b3e commit 11b5799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/training/tensorboard_writer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def log_metrics(
268268
name_length = max(len(x) for x in metric_names)
269269
logger.info(header_template, "Training".rjust(name_length + 13), "Validation")
270270

271-
for name in metric_names:
271+
for name in sorted(metric_names):
272272
# Log to tensorboard
273273
train_metric = train_metrics.get(name)
274274
if train_metric is not None:

0 commit comments

Comments
 (0)