Skip to content

Commit

Permalink
Merge branch 'nl_fix' of https://github.com/apax-hub/apax into nl_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Apr 5, 2024
2 parents 2305f50 + 1dc1203 commit 0a9ec1c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apax/train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,10 @@ def fit(
epoch_loss["val_loss"] /= val_steps_per_epoch
epoch_loss["val_loss"] = float(epoch_loss["val_loss"])

epoch_metrics.update(
{
f"val_{key}": float(val)
for key, val in val_batch_metrics.compute().items()
}
)
epoch_metrics.update({
f"val_{key}": float(val)
for key, val in val_batch_metrics.compute().items()
})

epoch_metrics.update({**epoch_loss})

Expand Down

0 comments on commit 0a9ec1c

Please sign in to comment.