Poprawa wypisysania wyników zadań
This commit is contained in:
parent
21accd7e11
commit
fbec4930f3
@ -10,6 +10,7 @@ for d in $(wc -l */out.tsv | grep -v $(cat ~/sport-text-classification-ball-dont
|
|||||||
do
|
do
|
||||||
mv $d/out.tsv $d/out.tsv.bak
|
mv $d/out.tsv $d/out.tsv.bak
|
||||||
tail -n $(cat ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv | wc -l) $d/out.tsv.bak >$d/out.tsv
|
tail -n $(cat ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv | wc -l) $d/out.tsv.bak >$d/out.tsv
|
||||||
|
# cat $d/out.tsv.bak <(echo 0) <(echo 0) >$d/out.tsv
|
||||||
wc -l $d/out.tsv
|
wc -l $d/out.tsv
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -19,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)
|
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
|
do
|
||||||
cp ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv $d/
|
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(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, '\t', math.ceil(float(x) * 7.0), end='\t')"
|
||||||
echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/'
|
echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/'
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -29,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)
|
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
|
do
|
||||||
cp ~/sport-text-classification-ball-dont-peek/dev-0/expected.tsv $d/
|
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(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, '\t', math.ceil(float(x) * 7.0), end='\t')"
|
||||||
echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/'
|
echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/'
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user