-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·38 lines (35 loc) · 1.41 KB
/
Copy pathrun_tests.sh
File metadata and controls
executable file
·38 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
mkdir -p Results/Logs
mkdir -p Results/SampleInputs
mkdir -p Reports
for d in "MNIST" "FashionMNIST" "SVHN" "TaxiNet" "Udacity"
do
echo "Running tests for "$d
for r in {1..10} #repeat the experiment n times
do
echo "Running iteration "$r
filename="Results/Logs/"$d"_results_"$r".txt"
echo -e "Running experiments for "$d"...\n" > $filename
echo "Running experiments for "$d
for i in "Level1" "Level2" "Level3" "Level4" "Level5"
do
echo "Generating latent samples for "$i >> $filename
echo "Generating latent samples for "$i
echo "python gen_latent_samples.py --dataset "$d " --density_range "$i "--index "$r >> $filename
python gen_latent_samples.py --dataset $d --density_range $i --index $r &>> $filename
echo -e "\nGenerating test set for "$i >> $filename
echo "Generating test set for "$i
echo "python gen_test_inputs.py --dataset "$d " --density_range "$i "--index "$r >> $filename
python gen_test_inputs.py --dataset $d --density_range $i --index $r >> $filename
cd DNN
echo "Meauring faults for "$i
echo -e "\nMeauring faults for "$i >> "../"$filename
echo "python faults.py --dataset "$d " --density_range "$i "--index "$r >> "../"$filename
python faults.py --dataset $d --density_range $i --index $r >> "../"$filename
cd ..
echo -e "\n\n" >> $filename
done
done
done
echo "Generating report..."
python rq3_report.py MNIST FashionMNIST SVHN TaxiNet Udacity 10