-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_experiments.py
More file actions
71 lines (55 loc) · 1.57 KB
/
run_experiments.py
File metadata and controls
71 lines (55 loc) · 1.57 KB
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
import pipeline_generate_paths as pipeline
import utility_legibility as legib
def exp_diff_legibilities():
legib_options = legib.get_legibility_options()
for l in legib_options:
exp_settings = pipeline.get_default_exp_settings()
exp_settings[pipeline.SETTING_LEGIBILITY_METHOD] = l
print("Testing label " + l)
pipeline.do_exp(exp_settings)
print("Done")
print("~~~~~~~~~~~")
print("Done with experiments of diff legibilities")
def exp_determine_lam_eps():
lam_vals = []
eps = 1e-7
# eps_vals = []
# # exit()
# * 1e-6
for i in range(-5, -10, -1):
# for i in np.arange(1.1, 2, .1):
new_val = 10 ** i
# eps_vals.append(new_val)
lam_vals.append(new_val)
# # lam_vals.append(new_val)
# print("REMIX TIME")
# for eps in eps_vals:
lam = 0
angle_strs = [520]
rbs = [55]
print("WILDIN")
for astr in angle_strs:
for rb in rbs:
exp_settings = pipeline.get_default_exp_settings()
exp_settings[pipeline.SETTING_LAMBDA] = lam
exp_settings[pipeline.SETTING_ANGLE_STRENGTH] = astr
exp_settings[pipeline.SETTING_RIGHT_BOUND] = rb
do_exp(exp_settings)
def exp_observer_aware():
lam = 0
kill_mode = True
astr = 500
rb = 40
# print("Doing main")
# Get the best path for the given scenario
exp_settings = pipeline.get_default_exp_settings('jul15')
exp_settings[pipeline.SETTING_LAMBDA] = lam
exp_settings[pipeline.SETTING_ANGLE_STRENGTH] = astr
exp_settings[pipeline.SETTING_RIGHT_BOUND] = rb
do_exp(exp_settings)
def main():
# export_best_options()
# exit()
exp_diff_legibilities()
if __name__ == "__main__":
main()