Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #150 from justusschock/trainer_fixes
Browse files Browse the repository at this point in the history
add metric conversion
  • Loading branch information
justusschock committed Jun 17, 2019
2 parents 9cd0c1c + 0850487 commit 8da5c32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions delira/training/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ def reduce_fn(batch):

total_metrics.update(val_metrics)

_, total_metrics = self._convert_to_npy_fn(**total_metrics)

for k, v in total_metrics.items():
total_metrics[k] = reduce_fn(v)

Expand Down

0 comments on commit 8da5c32

Please sign in to comment.