mistral-io-datasets/scripts/analyse-all.sh

42 lines
746 B
Bash
Raw Normal View History

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
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
function prepare(){
pushd datasets
./decompress.sh
popd
for I in datasets/*.csv ; do
2020-08-26 10:54:27 +00:00
if [ ! -e $(basename $I) ]; then
echo "Creating symlink $(basename $I)"
ln -s $I
fi
done
}
2020-08-26 10:54:27 +00:00
prepare
2020-08-17 17:14:58 +00:00
for I in job_similarities_*.csv ; do
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
2020-08-27 13:18:23 +00:00
mv *.png *.pdf jobs-*.txt $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