diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-13 11:15:19 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-13 11:15:19 +0800 |
commit | 2ed37d21aac148dcec068590decb8eaff892d23b (patch) | |
tree | a912ae6d8ecc9f4ce10f3ac025391c682837ff99 /models | |
parent | f6706981fd9e0608f25c6528467394508cfa2afc (diff) | |
parent | cdf2d2e00ff719e46b0d4bef46dabb1ddfe144dc (diff) |
Merge branch 'master' into python3.8
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 5ddcf90..c0adc41 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 |