mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
print num_frame as %.2f (#204)
This commit is contained in:
parent
27fa5f05d3
commit
be1c86b06c
@ -521,8 +521,8 @@ class MetricsTracker(collections.defaultdict):
|
|||||||
for k, v in self.norm_items():
|
for k, v in self.norm_items():
|
||||||
norm_value = "%.4g" % v
|
norm_value = "%.4g" % v
|
||||||
ans += str(k) + "=" + str(norm_value) + ", "
|
ans += str(k) + "=" + str(norm_value) + ", "
|
||||||
frames = str(self["frames"])
|
frames = "%.2f" % self["frames"]
|
||||||
ans += "over " + frames + " frames."
|
ans += "over " + str(frames) + " frames."
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
def norm_items(self) -> List[Tuple[str, float]]:
|
def norm_items(self) -> List[Tuple[str, float]]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user