poprawki do obliczania metryk 20

This commit is contained in:
alicja.m.musial 2020-04-03 17:13:22 +02:00
parent 42e29f18d4
commit a4c9d9b2f5

View File

@ -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')