diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-27 22:14:21 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-02-27 22:14:21 +0800 |
commit | 46391257ff50848efa1aa251ab3f15dc8b7a2d2c (patch) | |
tree | 1e04084a9f0e42a7421b951134dd0588ea691c08 /utils/configuration.py | |
parent | 9001f7e13d8985b220bd218d8de716bc586dbdcf (diff) |
Implement Batch Hard triplet loss and soft margin
Diffstat (limited to 'utils/configuration.py')
-rw-r--r-- | utils/configuration.py | 1 |
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] |