summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-27 21:27:45 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-27 21:27:45 +0800
commit30425d5fa8bdb58460adaaaaa2aae02b0d488812 (patch)
tree96f1f001c031e1c8683b9522131ec421586d0ea7
parent6aad65a708f518073c07b3f896d0107a17198d14 (diff)
parentcc9055ed68f4839cf953ce9a7e74e4c87d2ed279 (diff)
Merge branch 'python3.8' into python3.7
-rw-r--r--models/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py
index 78a9c0f..dbbc557 100644
--- a/models/model.py
+++ b/models/model.py
@@ -341,8 +341,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