Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 5, 2024
1 parent b8eaec7 commit 1dc1203
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 1dc1203

Please sign in to comment.