summaryrefslogtreecommitdiff
path: root/utils/configuration.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-27 22:14:21 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-27 22:14:21 +0800
commit46391257ff50848efa1aa251ab3f15dc8b7a2d2c (patch)
tree1e04084a9f0e42a7421b951134dd0588ea691c08 /utils/configuration.py
parent9001f7e13d8985b220bd218d8de716bc586dbdcf (diff)
Implement Batch Hard triplet loss and soft margin
Diffstat (limited to 'utils/configuration.py')
-rw-r--r--utils/configuration.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/configuration.py b/utils/configuration.py
index 435d815..20aec76 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -43,6 +43,7 @@ class ModelHPConfiguration(TypedDict):
tfa_squeeze_ratio: int
tfa_num_parts: int
embedding_dims: int
+ triplet_is_hard: bool
triplet_margins: tuple[float, float]