Skip to content

Commit

Permalink
Updated the tests to account for the epoch arriving at the logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
guydav authored and Borda committed Apr 23, 2020
1 parent e69f20d commit d5194f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/loggers/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def log_metrics(self, metrics, step):
trainer.test()

log_metric_names = [(s, sorted(m.keys())) for s, m in logger.history]
assert log_metric_names == [(0, ['val_acc', 'val_loss']),
(0, ['train_some_val']),
(1, ['test_acc', 'test_loss'])]
assert log_metric_names == [(0, ['epoch', 'val_acc', 'val_loss']),
(0, ['epoch', 'train_some_val']),
(1, ['epoch', 'test_acc', 'test_loss'])]


@pytest.mark.parametrize("logger_class", [
Expand Down

0 comments on commit d5194f2

Please sign in to comment.