Skip to content

Commit

Permalink
fix typo/bug in validation logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHell committed Jul 12, 2022
1 parent aa8a1ea commit 5fdbc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_em/trainer/default_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,5 @@ def _validate_impl(self, forward_context):
metric_val /= len(self.val_loader)
loss_val /= len(self.val_loader)
if self.logger is not None:
self.logger.log_validation(self._iteration, metric, loss, x, y, pred)
self.logger.log_validation(self._iteration, metric_val, loss_val, x, y, pred)
return metric_val

0 comments on commit 5fdbc1a

Please sign in to comment.