summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-27 21:27:36 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-27 21:27:36 +0800
commitcc9055ed68f4839cf953ce9a7e74e4c87d2ed279 (patch)
tree2cc1c62a8bab297b53a488f712307754faa540f5 /models/model.py
parentf065f227b0bcdac61db9240f7df6ea2b748a89b7 (diff)
parent99d1b18ac380bcf7d7579d80e09c9ddaecde44b3 (diff)
Merge branch 'master' into python3.8
Diffstat (limited to 'models/model.py')
-rw-r--r--models/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py
index b2947a0..8e4398b 100644
--- a/models/model.py
+++ b/models/model.py
@@ -344,8 +344,8 @@ class Model:
)
losses = torch.stack((
*ae_losses,
- hpm_result.pop('loss').mean(),
- pn_result.pop('loss').mean()
+ torch.log(hpm_result.pop('loss').mean() + 1),
+ torch.log(pn_result.pop('loss').mean() + 1)
))
return losses, hpm_result, pn_result