Commit 931d138b authored by WenmuZhou's avatar WenmuZhou
Browse files

更新日志格式

parent 21fca149
...@@ -65,5 +65,8 @@ class TrainingStats(object): ...@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment