-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_experiment.sh
executable file
·46 lines (37 loc) · 1.26 KB
/
run_experiment.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
#!/bin/bash
source $ML_FRAMEWORK_DIR/common.sh
source $ML_FRAMEWORK_DIR/params.sh
prepare_run_dir
config_file=${params[RUN_DIR]}/config
save_params params $config_file
source $ML_FRAMEWORK_DIR/iterate_featsets.sh
source $ML_FRAMEWORK_DIR/iterate_mlmethods.sh
source $ML_FRAMEWORK_DIR/train_test.sh
source $ML_FRAMEWORK_DIR/self_training.sh
source $ML_FRAMEWORK_DIR/co_training_ali.sh
source $ML_FRAMEWORK_DIR/learning_curve.sh
source $ML_FRAMEWORK_DIR/cross_validation.sh
###### ITERATE OVER FEATSETS #######
if [ ${params[FEATSET_LIST]+_} ]; then
iterate_featsets
###### ONE OR NO FEATSET ###########
else
run_on_featset
####### ITERATE OVER ML_METHODS ########
if [ ${params[ML_METHOD_LIST]+_} ]; then
iterate_mlmethods
#### SINGLE FEATSET, SINGLE MLMETHOD ####
else
exper_type=${params[EXPERIMENT_TYPE]}
case $exper_type in
train_test) train_test ;;
learning_curve) learning_curve ;;
cross-validation) cross_validation ;;
self-training) self_training ;;
co-training_align) co_training_ali ;;
*) $ML_FRAMEWORK_DIR/log.sh ERROR "Cannot recognize the type of an experiment: $exper_type" >&2;
exit
;;
esac
fi
fi