Skip to content

Commit

Permalink
Add '%' symbol in CLI results display
Browse files Browse the repository at this point in the history
  • Loading branch information
desh2608 authored Mar 5, 2021
2 parents 606c84d + 88d7ef3 commit bc971f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spyder/der.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def compute_der_from_rttm(ref_rttm, hyp_rttm, per_file=False):
der = miss + falarm + conf
print("Average error rates:")
print("----------------------------------------------------")
print(f"Missed speaker time = {100*miss:.2f}")
print(f"False alarm speaker time = {100*falarm:.2f}")
print(f"Speaker error time = {100*conf:.2f}")
print(f"Diarization error rate (DER) = {100*der:.2f}")
print(f"Missed speaker time = {miss:.2%}")
print(f"False alarm speaker time = {falarm:.2%}")
print(f"Speaker error time = {conf:.2%}")
print(f"Diarization error rate (DER) = {der:.2%}")

0 comments on commit bc971f9

Please sign in to comment.