# this file support only leave-one-out at the moment. 
# $1 is the number of examples
# $2 is TimePoint


results_dir='./artificialData/tomato/experiments/compression_leave_one_out_Results'  #where to store results
rm -r ${results_dir}
mkdir ${results_dir}

#for time_point1 in cnr_early cnr_mid cnr_late nor_early nor_mid nor_late rin_early rin_mid rin_late
#do
#mkdir ${results_dir}/${time_point1}
#done



for time_point2 in cnr_early cnr_mid cnr_late nor_early nor_mid nor_late rin_early rin_mid rin_late
do
echo ${time_point2}

for (( j=1; j<=$1; j++ ))
do
yap -L test.pl -- ${time_point2} $j
cat oneFoldPrediction.txt >> ${results_dir}/${time_point2}.txt
done
cat ${results_dir}/${time_point2}.txt >> ${results_dir}/allPredictiveAccuracies.txt
echo -e "\n" >> ${results_dir}/allPredictiveAccuracies.txt
done