2020-08-17 17:14:58 +00:00
|
|
|
#!/bin/bash
|
2020-08-18 12:58:47 +00:00
|
|
|
|
2020-08-20 11:11:35 +00:00
|
|
|
# call me from the parent directory
|
2020-08-20 15:16:46 +00:00
|
|
|
|
|
|
|
echo "This script performs the complete analysis steps"
|
|
|
|
|
2020-08-21 18:12:33 +00:00
|
|
|
CLEAN=0 # Set to 0 to make some update
|
|
|
|
|
2020-08-20 15:16:46 +00:00
|
|
|
function prepare(){
|
|
|
|
pushd datasets
|
|
|
|
./decompress.sh
|
|
|
|
popd
|
|
|
|
|
|
|
|
for I in datasets/*.csv ; do
|
|
|
|
ln -s $I
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
# prepare
|
|
|
|
|
2020-08-17 17:14:58 +00:00
|
|
|
for I in job_similarities_*.csv ; do
|
2020-08-20 15:16:46 +00:00
|
|
|
rm *.png *.pdf
|
2020-08-18 12:58:47 +00:00
|
|
|
./scripts/plot.R $I > description.txt
|
2020-08-20 11:11:35 +00:00
|
|
|
OUT=${I%%.csv}-out
|
|
|
|
mkdir $OUT
|
2020-08-21 18:12:33 +00:00
|
|
|
if [[ $CLEAN != "0" ]] ; then
|
|
|
|
rm $OUT/*
|
|
|
|
mv description.txt $OUT
|
|
|
|
fi
|
|
|
|
mv *.png *.pdf $OUT
|
2020-08-17 17:14:58 +00:00
|
|
|
done
|
2020-08-25 17:00:28 +00:00
|
|
|
|
|
|
|
# analyze peformance data
|
|
|
|
|
|
|
|
for I in datasets/progress_*.csv ; do
|
|
|
|
OUT=fig/$(basename ${I%%.csv}-out)
|
|
|
|
./scripts/plot-performance.R $I $OUT
|
|
|
|
done
|