summaryrefslogtreecommitdiff
path: root/utils/configuration.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:23:33 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:26:47 +0800
commitd88e40217f56d96e568335ccee1f14ff3ea5a696 (patch)
treef24b204794fbb8fc501d2124ae67a73faf82db1f /utils/configuration.py
parent5f75d7ef65f6dcd0e72df320c58b6bd141937b5f (diff)
parent6002b2d2017912f90e8917e6e8b71b78ce58e7c2 (diff)
Merge branch 'master' into data_parallel
# Conflicts: # models/model.py
Diffstat (limited to 'utils/configuration.py')
-rw-r--r--utils/configuration.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/configuration.py b/utils/configuration.py
index 435d815..0f8d9ff 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -43,6 +43,8 @@ class ModelHPConfiguration(TypedDict):
tfa_squeeze_ratio: int
tfa_num_parts: int
embedding_dims: int
+ triplet_is_hard: bool
+ triplet_is_mean: bool
triplet_margins: tuple[float, float]
@@ -55,7 +57,6 @@ class SubOptimizerHPConfiguration(TypedDict):
class OptimizerHPConfiguration(TypedDict):
- start_iter: int
lr: int
betas: tuple[float, float]
eps: float
@@ -68,8 +69,8 @@ class OptimizerHPConfiguration(TypedDict):
class SchedulerHPConfiguration(TypedDict):
- step_size: int
- gamma: float
+ start_step: int
+ final_gamma: float
class HyperparameterConfiguration(TypedDict):