更新日志格式

This commit is contained in:
WenmuZhou 2020-11-16 19:11:42 +08:00
parent 21fca149b2
commit 931d138bb3
1 changed files with 4 additions and 1 deletions

View File

@ -65,5 +65,8 @@ class TrainingStats(object):
def log(self, extras=None): def log(self, extras=None):
d = self.get(extras) d = self.get(extras)
strs = ', '.join(str(dict({x: y})).strip('{}') for x, y in d.items()) strs = []
for k, v in d.items():
strs.append('{}: {:x<6f}'.format(k, v))
strs = ', '.join(strs)
return strs return strs