-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests_focused_s.sh
49 lines (43 loc) · 2.65 KB
/
run_tests_focused_s.sh
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
39
40
41
42
43
44
45
46
47
48
export THEANO_FLAGS='device=cuda1, gpuarray.preallocate=.1'
CODEFOLDER="/home/btek/Dropbox/code/pythoncode/FocusingNeuron/"
EXFOLDER="/home/btek/Dropbox/code/pythoncode/FocusingNeuron/outputs/ESNN/mnist9/focused_s"
EXNAME="mnist9/focused_s/"
RUN_SCRIPT="mnist.py"
echo $CODEFOLDER$RUN_SCRIPT
#cd $EXFOLDER
# RUN THE PYTHON SCRIPT
python $CODEFOLDER$RUN_SCRIPT focused_mlp:2,800,.25,.50 350 5 mnist $EXNAME 0.0 >> $EXFOLDER/mnist_focused_s_log.txt
# LIST THE OUTPUT FILES
ls $EXFOLDER/mnist_result_focused* >> $EXFOLDER/list_mnist_focused.txt
# FIND TEST ACCURACIES WARNING THIS IS JUST A PRINT SUMMARY. ALL TEST ACCURACIES ARE ACTUALLY IN NPZ FILE
SUMMARY=$(grep "test accuracy:" $EXFOLDER/mnist_focused_s_log.txt)
echo focused>> $EXFOLDER/mnist_focused_s_accuracy_log.txt
date >> $EXFOLDER/mnist_focused_s_accuracy_log.txt
echo $SUMMARY>> $EXFOLDER/mnist_focused_s_accuracy_log.txt
# RUN THE PYTHON SCRIPT
python $CODEFOLDER$RUN_SCRIPT focused_mlp:2,800,.25,.50 350 5 fashion $EXNAME 0.25 >> $EXFOLDER/fashion_focused_s_log.txt
# LIST THE OUTPUT FILES
ls $EXFOLDER/fashion_result_focused* >> $EXFOLDER/list_fashion_focused.txt
# FIND TEST ACCURACIES WARNING THIS IS JUST A PRINT SUMMARY. ALL TEST ACCURACIES ARE ACTUALLY IN NPZ FILE
SUMMARY=$(grep "test accuracy:" $EXFOLDER/fashion_focused_s_log.txt)
echo focused>> $EXFOLDER/fashion_focused_s_accuracy_log.txt
date >> $EXFOLDER/fashion_focused_s_accuracy_log.txt
echo $SUMMARY>> $EXFOLDER/fashion_focused_s_accuracy_log.txt
# RUN THE PYTHON SCRIPT
python $CODEFOLDER$RUN_SCRIPT focused_mlp:2,800,.25,.50 350 5 cifar10 $EXNAME 0.5 >> $EXFOLDER/cifar10_focused_s_log.txt
# LIST THE OUTPUT FILES
ls $EXFOLDER/cifar10_result_focused* >> $EXFOLDER/list_cifar10_focused.txt
# FIND TEST ACCURACIES WARNING THIS IS JUST A PRINT SUMMARY. ALL TEST ACCURACIES ARE ACTUALLY IN NPZ FILE
SUMMARY=$(grep "test accuracy:" $EXFOLDER/cifar10_focused_s_log.txt)
echo focused>> $EXFOLDER/cifar10_focused_s_accuracy_log.txt
date >> $EXFOLDER/cifar10_focused_s_accuracy_log.txt
echo $SUMMARY>> $EXFOLDER/cifar10_focused_s_accuracy_log.txt
# RUN THE PYTHON SCRIPT
python $CODEFOLDER$RUN_SCRIPT focused_mlp:2,1200,.25,.50 350 5 mnist_cluttered $EXNAME 1.0 >> $EXFOLDER/mnist_cluttered_log.txt
# LIST THE OUTPUT FILES
ls $EXFOLDER/mnist_cluttered_result_focused* >> $EXFOLDER/list_mnist_cluttered_focused.txt
# FIND TEST ACCURACIES WARNING THIS IS JUST A PRINT SUMMARY. ALL TEST ACCURACIES ARE ACTUALLY IN NPZ FILE
SUMMARY=$(grep "test accuracy:" $EXFOLDER/mnist_cluttered_log.txt)
echo focused>> $EXFOLDER/mnist_cluttered_focused_s_accuracy_log.txt
date >> $EXFOLDER/mnist_cluttered_focused_s_accuracy_log.txt
echo $SUMMARY>> $EXFOLDER/mnist_cluttered_focused_s_accuracy_log.txt