summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-12 14:22:35 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-12 14:22:35 +0800
commit36c65d17e29bcdbc27089d3b3eba177c8da549e8 (patch)
tree61d6bd2527f2556fda7f5481d2469857a8690859 /utils
parentbbc2d84e59749e6fa1d87ffcc738419ff19a447e (diff)
parente3ffe09d3b509b718aa5093481a496a8cbf38187 (diff)
Merge branch 'master' into python3.8
# Conflicts: # utils/configuration.py
Diffstat (limited to 'utils')
-rw-r--r--utils/configuration.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/utils/configuration.py b/utils/configuration.py
index 455abe8..71584c0 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -27,7 +27,7 @@ class DataloaderConfiguration(TypedDict):
pin_memory: bool
-class HyperparameterConfiguration(TypedDict):
+class ModelHPConfiguration(TypedDict):
ae_feature_channels: int
f_a_c_p_dims: Tuple[int, int, int]
hpm_scales: Tuple[int, ...]
@@ -41,8 +41,23 @@ class HyperparameterConfiguration(TypedDict):
tfa_num_parts: int
embedding_dims: int
triplet_margin: float
+
+
+class OptimizerHPConfiguration(TypedDict):
lr: int
betas: Tuple[float, float]
+ weight_decay: float
+
+
+class SchedulerHPConfiguration(TypedDict):
+ step_size: int
+ gamma: float
+
+
+class HyperparameterConfiguration(TypedDict):
+ model: ModelHPConfiguration
+ optimizer: OptimizerHPConfiguration
+ scheduler: SchedulerHPConfiguration
class ModelConfiguration(TypedDict):