summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-14 23:43:29 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-14 23:43:29 +0800
commit6ffc1c06f66277d37877fc13fb1ffa585598d6d7 (patch)
tree3c5c12c2d2a695a3dba015bb2b09db3ffab061ee /utils
parentdb5a58b1db9875afbc2a4c7e6e5d190b6c28ee34 (diff)
Enable optimizer fine tuning
Diffstat (limited to 'utils')
-rw-r--r--utils/configuration.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/configuration.py b/utils/configuration.py
index 9a8c2ae..8b265e8 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -43,10 +43,24 @@ class ModelHPConfiguration(TypedDict):
triplet_margin: float
+class SubOptimizerHPConfiguration(TypedDict):
+ lr: int
+ betas: tuple[float, float]
+ eps: float
+ weight_decay: float
+ amsgrad: bool
+
+
class OptimizerHPConfiguration(TypedDict):
lr: int
betas: tuple[float, float]
+ eps: float
weight_decay: float
+ amsgrad: bool
+ auto_encoder: SubOptimizerHPConfiguration
+ part_net: SubOptimizerHPConfiguration
+ hpm: SubOptimizerHPConfiguration
+ fc: SubOptimizerHPConfiguration
class SchedulerHPConfiguration(TypedDict):