forked from lucaslzl/mo416_p2_ga_ia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecute.sh
128 lines (106 loc) · 2.13 KB
/
execute.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
for name in cellphone airline_customer_satisfaction Kobe mushrooms #IBM bands flag glass #
do
sleep 2
for config in 0 1 2 3 4 5 6 7 8 9
do
sleep 1
population=50
iteration_limit=100
stop_criteria=1
probs_type=0
crossover_type=3
crossover_rate=0.8
mutation_type=0
mutation_rate=0.03
use_threads=0
cut_half_pop=0
replicate_best=0.1
if [ $config = '0' ];
then
echo "Basic Configuration"
elif [ $config = '1' ];
then
echo "Configuration 1"
population=10
elif [ $config = '2' ];
then
echo "Configuration 2"
iteration_limit=200
elif [ $config = '3' ];
then
echo "Configuration 3"
stop_criteria=0
elif [ $config = '4' ];
then
echo "Configuration 4"
crossover_type=2
elif [ $config = '5' ];
then
echo "Configuration 5"
crossover_rate=0.5
elif [ $config = '6' ];
then
echo "Configuration 6"
mutation_type=1
elif [ $config = '7' ];
then
echo "Configuration 7"
mutation_rate=0.15
elif [ $config = '8' ];
then
echo "Configuration 8"
replicate_best=0
elif [ $config = '9' ];
then
echo "Configuration 9"
mutation_rate=0.5
fi
python3 main.py \
--dataset="./data/${name}.csv" \
--population="${population}" \
--iteration_limit="${iteration_limit}" \
--stop_criteria="${stop_criteria}" \
--probs_type="${probs_type}" \
--crossover_type="${crossover_type}" \
--crossover_rate="${crossover_rate}" \
--mutation_type="${mutation_type}" \
--mutation_rate="${mutation_rate}" \
--use_threads="${use_threads}" \
--cut_half_pop="${cut_half_pop}" \
--replicate_best="${replicate_best}" &
done
done
# for population in 50
# do
# for iteration_limit in 100
# do
# for stop_criteria in 0 #E(0, 1, 2)
# do
# for probs_type in 0 #E(0, 1)
# do
# for crossover_type in 3 #E(0, 1, 2 , 3)
# do
# for crossover_rate in 0.8 # Pr~(0-1)
# do
# for mutation_type in 0 #E(0, 1)
# do
# for mutation_rate in 0.03 # Pr~(0-1)
# do
# for use_threads in 0 #0=False, 1=True
# do
# for cut_half_pop in 0 #0=False, 1=True
# do
# for replicate_best in 0.1 #Pr~(0-1)
# do
# done
# done
# done
# done
# done
# done
# done
# done
# done
# done
# done