mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
print num_frame as %.2f
This commit is contained in:
parent
35ecd7e562
commit
3912d12e6a
@ -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