Skip to content

Commit e2225f4

Browse files
committed
Plot final ablation
1 parent e932f4a commit e2225f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plot_results.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ def plot2dt(runid1: str, runid2: str):
126126
fig.savefig(f"plotspng/dronetypes.png")
127127
plt.show()
128128

129+
def plot3dt(runid1: str, runid2: str, runid3: str):
130+
fig, axs = plt.subplots(1, 3, figsize=(18, 6))
131+
plot_drone_types(axs[0], runid1)
132+
plot_drone_types(axs[1], runid2)
133+
plot_drone_types(axs[2], runid3)
134+
fig.savefig(f"plots/dronetypes3.svg")
135+
fig.savefig(f"plotspng/dronetypes3.png")
136+
plt.show()
137+
129138

130139
def plot(xps: List[Experiment], metrics: List[str], title: str, name: str):
131140
fig, ax = plt.subplots(figsize=(12, 9))
@@ -155,6 +164,7 @@ def plot4(descriptors: List[str], metrics: Dict[str, str], name: str):
155164
os.makedirs('plotspng')
156165

157166
plot2dt('i17gv7pw', 'sidk0gu4')
167+
plot3dt('lbspx7ok', 'i17gv7pw', 'sidk0gu4')
158168

159169
baseline = Experiment(descriptor="f2034f-hpsetstandard", label="baseline")
160170
adr_ablations = [
@@ -171,6 +181,8 @@ def plot4(descriptors: List[str], metrics: Dict[str, str], name: str):
171181
Experiment("049430-batches_per_update64-bs256-hpsetstandard-mothership_damage_scale0.0-mothership_damage_scale_schedule", "module cost, fixed map"),
172182
Experiment("049430-adr_variety0.0-adr_variety_schedule-batches_per_update64-bs256-hpsetstandard", "mothership damage, fixed map"),
173183
Experiment("049430-adr_variety0.0-adr_variety_schedule-batches_per_update64-bs256-hpsetstandard-mothership_damage_scale0.0-mothership_damage_scale_schedule", "fixed map"),
184+
185+
Experiment("d06bdd-hpsetstandard", "mothership damage, random module cost, map curriculum"),
174186
]
175187
ablations = [
176188
Experiment("f2034f-hpsetstandard-partial_score0.0", "sparse reward"),

0 commit comments

Comments
 (0)