From b8a97274e608b0c286ee386b0ae8b0008392efe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Sk=C3=B3rzewski?= Date: Mon, 3 Jun 2024 11:28:05 +0200 Subject: [PATCH] =?UTF-8?q?Poprawa=20wypisysania=20wynik=C3=B3w=20zada?= =?UTF-8?q?=C5=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wyniki_zad2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wyniki_zad2.sh b/wyniki_zad2.sh index 9e3d5dc..e4e3d8b 100755 --- a/wyniki_zad2.sh +++ b/wyniki_zad2.sh @@ -20,7 +20,7 @@ echo "Wyniki dla test-A:" for d in $(wc -l */out.tsv | grep $(cat ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv | wc -l) | sed 's/^[0-9 ]\+//' | sed 's|/[a-z]\+.tsv$||' | sort -u) do cp ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv $d/ - geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print('test-A accuracy:', x, '\t', math.ceil(float(x) * 7.0), end='\t')" + geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print('test-A accuracy:', x, ' ', math.ceil(float(x) * 7.0), end=' ')" echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/' done @@ -30,7 +30,7 @@ echo "Wyniki dla dev-0:" for d in $(wc -l */out.tsv | grep $(cat ~/sport-text-classification-ball-dont-peek/dev-0/expected.tsv | wc -l) | sed 's/^[0-9 ]\+//' | sed 's|/[a-z]\+.tsv$||' | sort -u) do cp ~/sport-text-classification-ball-dont-peek/dev-0/expected.tsv $d/ - geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print('dev-0 accuracy:', x, '\t', math.ceil(float(x) * 7.0), end='\t')" + geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print('dev-0 accuracy:', x, ' ', math.ceil(float(x) * 7.0), end=' ')" echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/' done