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-10-01 16:10:27 +00:00
|
|
|
./scripts/plot-job-timelines-ks.py 4296426,5024292,7488914 fig/job,fig/job,fig/job
|
|
|
|
|
2020-08-20 15:16:46 +00:00
|
|
|
|
2020-10-01 16:10:27 +00:00
|
|
|
for I in datasets/job_similarities_*.csv ; do
|
2020-08-20 15:16:46 +00:00
|
|
|
rm *.png *.pdf
|
2020-09-03 12:59:20 +00:00
|
|
|
echo "processing $I"
|
2020-09-03 18:45:37 +00:00
|
|
|
set -x
|
|
|
|
./scripts/plot.R $I > description.txt 2>&1
|
|
|
|
set +x
|
2020-10-01 16:10:27 +00:00
|
|
|
I=${I##datasets/}
|
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/*
|
|
|
|
fi
|
2020-09-03 12:59:20 +00:00
|
|
|
mv description.txt *.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
|