dataset='lincoln'
grep -v '#' ../src/models/test_models.txt|grep -v '!' >models.tmp
mkdir ../results/$dataset/
for m in $(cut -f 1 -d ' ' models.tmp)
do	
	for o in $(cat models.tmp |grep $m|sed  -e 's/\s\+/\ /g'|cut -f 2-100 -d ' ');
	do
		rm ../results/$dataset/$(printf "%s_%02i" $m $o)*
		echo Model $m, parameter $o
		for i in 20 50 100 
		do 
			for j in 5 10 15 30 #60
			do
				a=$(echo $i|awk '{print  $1/100}');
				b=$(echo $j|awk '{print $1*60}');
				echo ../bin/fremen ../data/$dataset/trenovaci_dva_tydny.txt ../data/$dataset/testovaci_dva_dny.txt $a $b $m $o 
				../bin/fremen ../data/$dataset/trenovaci_dva_tydny.txt ../data/$dataset/testovaci_dva_dny.txt $a $b $m $o >../results/$dataset/$(printf "%s_%03i_%04i_%04i.txt\n" $m $o $i $j)
				echo -ne \\r $i, $j
			done
		done
		echo Model $m, parameter $o
	done
done
