-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·99 lines (82 loc) · 2.89 KB
/
run.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/env sh
LOG_FILE='experiments.log'
echo "Starting at $(date)"
####################################
####### BACKUP EXPERIMENTS #########
####################################
cp $LOG_FILE $LOG_FILE.bak
if [[ -d "experiments.back.1" ]]; then
last_index=$(ls experiments.back.* -d | awk -F '.' '/experiments./{print $3}' | sort -n | tail -1)
else
last_index=0
fi
if [[ -d "experiments-holdout_0.0" ]]; then
echo "moving experiments-holdout_?.? to experiments.back.$((last_index + 1))"
mv experiments-holdout_?.? experiments.back.$((last_index + 1))
fi
##########################################
######## ECTRACTING FEATURES #############
##########################################
# echo
# echo "Extracting features" | tee -a $LOG_FILE
# ./dust -m modeling features | tee -a $LOG_FILE
# echo
####################################
######### EXPERIMENTS ##############
####################################
echo
echo "Starting Experiment with Full AutoML" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling blackbox automl >>$LOG_FILE 2>&1
echo
echo "Starting Experiment with Linear AutoML" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling linear automl >>$LOG_FILE 2>&1
echo
echo "Starting Experiment with Tree AutoML" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling tree automl >>$LOG_FILE 2>&1
# baseline
echo
echo "Starting Baseline grid-search-based methods" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling baseline gridsearch >>$LOG_FILE 2>&1
# showing model structure
echo
echo "Showing Model Structures" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling.show_models | tee -a $LOG_FILE
# perform post-hoc analysis
echo
echo "Performing Inspection!" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling inspection | tee -a $LOG_FILE
# perform post-hoc analysis
echo
echo "Performing Post-hoc analysis!" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling post_analysis | tee -a $LOG_FILE
####################################
########## FINAL TEST ##############
####################################
echo
echo "Final Test on Suspected Arias!" | tee -a $LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
echo "------------------" >>$LOG_FILE
./dust -m modeling test | tee -a $LOG_FILE
echo