summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-13 11:15:04 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-13 11:15:04 +0800
commitcdf2d2e00ff719e46b0d4bef46dabb1ddfe144dc (patch)
tree908f5549bf4497c5af1f76b1490adacdc8d2f379 /models/model.py
parent8ee391b65e2b48d777a268749f54b3aa9e4b9142 (diff)
Update config file and convert int to str when joining
Diffstat (limited to 'models/model.py')
-rw-r--r--models/model.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py
index 7373dbb..c6a1234 100644
--- a/models/model.py
+++ b/models/model.py
@@ -82,7 +82,9 @@ class Model:
@property
def _model_sig(self) -> str:
- return '_'.join((self._model_name, self.curr_iter, self.total_iter))
+ return '_'.join(
+ (self._model_name, str(self.curr_iter), str(self.total_iter))
+ )
@property
def _checkpoint_sig(self) -> str:
@@ -95,7 +97,7 @@ class Model:
@property
def _log_sig(self) -> str:
- return '_'.join((self._model_name, self.total_iter, self._hp_sig,
+ return '_'.join((self._model_name, str(self.total_iter), self._hp_sig,
self._dataset_sig, str(self.pr), str(self.k)))
@property