This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_all_models.py
57 lines (40 loc) · 1.62 KB
/
run_all_models.py
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
import LSTM as i1
import LSTM_LL1 as i2
import LSTM_LL2 as i3
if __name__ == "__main__":
''' Model parameters to iterate through '''
BATCH_SIZE = 15 #[10, 25, 50] # mini_batch size
MAX_EPOCH = 100 # maximum epoch to train
hidden_size = 256 #[25,100,500,1000] # size of hidden layer
n_layers = 2 # number of lstm layers
""" defining bounding box """
# small bounding box
xmin, xmax = -74.2754, -73.9374
ymin, ymax = 40.4041, 40.6097
box_size = 'S'
i1.main(BATCH_SIZE, MAX_EPOCH, hidden_size, 3,
box_size, xmin, xmax, ymin, ymax)
# i2.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
# box_size, xmin, xmax, ymin, ymax)
# i3.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
# box_size, xmin, xmax, ymin, ymax)
# medium bounding box
xmin, xmax = -74.6764, -69.5103
ymin, ymax = 39.9218, 41.8667
box_size = 'M'
# i1.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
# box_size, xmin, xmax, ymin, ymax)
i2.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
box_size, xmin, xmax, ymin, ymax)
i3.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
box_size, xmin, xmax, ymin, ymax)
# large bounding box
xmin, xmax = -77.9897, -66.2786
ymin, ymax = 35.7051, 45.5341
box_size = 'L'
# i1.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
# box_size, xmin, xmax, ymin, ymax)
i2.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
box_size, xmin, xmax, ymin, ymax)
i3.main(BATCH_SIZE, MAX_EPOCH, hidden_size, n_layers,
box_size, xmin, xmax, ymin, ymax)