diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-13 11:15:04 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-13 11:15:04 +0800 |
commit | cdf2d2e00ff719e46b0d4bef46dabb1ddfe144dc (patch) | |
tree | 908f5549bf4497c5af1f76b1490adacdc8d2f379 /models | |
parent | 8ee391b65e2b48d777a268749f54b3aa9e4b9142 (diff) |
Update config file and convert int to str when joining
Diffstat (limited to 'models')
-rw-r--r-- | models/model.py | 6 |
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 |