poprawki do obliczania metryk 20
This commit is contained in:
parent
42e29f18d4
commit
a4c9d9b2f5
@ -5,11 +5,11 @@ if __name__ == '__main__':
|
||||
lineCount = 0
|
||||
|
||||
with open('wer.txt','a+') as werOut:
|
||||
for line in werOut:
|
||||
num = float(line)
|
||||
sum += num
|
||||
lineCount += 1
|
||||
for line in werOut:
|
||||
num = float(line)
|
||||
sum += num
|
||||
lineCount += 1
|
||||
|
||||
werAv = 0
|
||||
werAv = sum / lineCount
|
||||
werOut.write(f'{werAv:.5f}\n')
|
||||
werAv = 0
|
||||
werAv = sum / lineCount
|
||||
werOut.write(f'{werAv:.5f}\n')
|
||||
|
Loading…
Reference in New Issue
Block a user