更新日志格式
This commit is contained in:
parent
21fca149b2
commit
931d138bb3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue