preparing baseline format for codalab
This commit is contained in:
parent
fd1ab667ac
commit
96576687ff
|
@ -44,10 +44,14 @@ mkdir -p submission_files
|
||||||
|
|
||||||
for modelname in predictions/* ; do
|
for modelname in predictions/* ; do
|
||||||
modelname=$(basename "$modelname")
|
modelname=$(basename "$modelname")
|
||||||
submission_name=submission_files/$modelname.zip
|
echo "modelname is $modelname"
|
||||||
|
for taskname in predictions/$modelname/*.csv ; do
|
||||||
|
taskname=$(basename "$taskname")
|
||||||
|
submission_name=submission_files/"$modelname"_"$taskname".zip
|
||||||
rm -f $submission_name
|
rm -f $submission_name
|
||||||
echo "zipping results for $modelname"
|
echo "zipping results for $modelname and task $taskname"
|
||||||
zip -j $submission_name predictions/$modelname/task_*.csv
|
zip -j $submission_name predictions/$modelname/$taskname
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "[Done]"
|
echo "[Done]"
|
||||||
|
|
Loading…
Reference in New Issue