sync(report): brax_hv_bestreg72_refm5000m7000_ep16_20260714
Browse files- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/README.md +6 -1
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0p2_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0p4_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0p2_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0p4_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0p2_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0p4_refm5000_m7000.png +2 -2
- reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/make_overview.py +95 -0
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/README.md
CHANGED
|
@@ -64,7 +64,12 @@ B50 configuration has the tightest three-seed spread among the leaders.
|
|
| 64 |
- `analysis/overview_metrics.json`: machine-readable headline metrics.
|
| 65 |
- `analysis/plots/`: compact overview, top-10 chart, and 12 detailed plots.
|
| 66 |
- `calibration/`: common-reference calibration and 216-row mesh check.
|
| 67 |
-
- `make_overview.py`: reproducible generator for the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
The full policy-bank payload is published separately in the configured model
|
| 70 |
repository as a compressed archive with a SHA-256 sidecar and an explicit
|
|
|
|
| 64 |
- `analysis/overview_metrics.json`: machine-readable headline metrics.
|
| 65 |
- `analysis/plots/`: compact overview, top-10 chart, and 12 detailed plots.
|
| 66 |
- `calibration/`: common-reference calibration and 216-row mesh check.
|
| 67 |
+
- `make_overview.py`: reproducible generator for the compact and overlay plots.
|
| 68 |
+
|
| 69 |
+
In the nine detailed `(H, flip)` budget plots, A0 and A1 share the same axes.
|
| 70 |
+
Solid circles denote A0, dashed squares denote A1, faint points show the three
|
| 71 |
+
individual seeds, and each translucent band is **mean +/- population SD**. The
|
| 72 |
+
band is descriptive uncertainty for three seeds, not a 95% confidence interval.
|
| 73 |
|
| 74 |
The full policy-bank payload is published separately in the configured model
|
| 75 |
repository as a compressed archive with a SHA-256 sidecar and an explicit
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0p2_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H32_flip0p4_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0p2_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H40_flip0p4_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0p2_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/analysis/plots/hv_by_budget_mo-halfcheetah-v5_braxvmap_H48_flip0p4_refm5000_m7000.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
reports/v0.52.3.0/brax_hv_bestreg72_refm5000m7000_ep16_20260713/make_overview.py
CHANGED
|
@@ -47,6 +47,98 @@ def variant_effect(
|
|
| 47 |
}
|
| 48 |
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
def main() -> None:
|
| 51 |
PLOTS.mkdir(parents=True, exist_ok=True)
|
| 52 |
runs = read_tsv(ANALYSIS / "parsed_hv_runs.tsv")
|
|
@@ -56,6 +148,8 @@ def main() -> None:
|
|
| 56 |
colors = {"a0_resmlp": "#2878B5", "a1_resmlp": "#E07B39"}
|
| 57 |
pretty = {"a0_resmlp": "A0", "a1_resmlp": "A1"}
|
| 58 |
|
|
|
|
|
|
|
| 59 |
by_variant: dict[str, list[float]] = defaultdict(list)
|
| 60 |
for row in runs:
|
| 61 |
by_variant[row["variant"]].append(float(row["hypervolume"]))
|
|
@@ -194,6 +288,7 @@ def main() -> None:
|
|
| 194 |
)
|
| 195 |
print(f"overview_plot={overview_path}")
|
| 196 |
print(f"top10_plot={PLOTS / 'top10_hv_configs.png'}")
|
|
|
|
| 197 |
print(f"metrics={ANALYSIS / 'overview_metrics.json'}")
|
| 198 |
|
| 199 |
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
|
| 50 |
+
def plot_detailed_overlays(
|
| 51 |
+
runs: list[dict[str, str]],
|
| 52 |
+
variants: list[str],
|
| 53 |
+
colors: dict[str, str],
|
| 54 |
+
pretty: dict[str, str],
|
| 55 |
+
) -> list[Path]:
|
| 56 |
+
groups: dict[
|
| 57 |
+
tuple[str, str], dict[str, dict[str, list[float]]]
|
| 58 |
+
] = defaultdict(lambda: defaultdict(lambda: defaultdict(list)))
|
| 59 |
+
for row in runs:
|
| 60 |
+
key = (row["H"], row["flip"])
|
| 61 |
+
groups[key][row["variant"]][row["B"]].append(
|
| 62 |
+
float(row["hypervolume"]) / 1e6
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
markers = {"a0_resmlp": "o", "a1_resmlp": "s"}
|
| 66 |
+
linestyles = {"a0_resmlp": "-", "a1_resmlp": "--"}
|
| 67 |
+
offsets = {"a0_resmlp": -0.035, "a1_resmlp": 0.035}
|
| 68 |
+
seed_jitter = [-0.012, 0.0, 0.012]
|
| 69 |
+
output_paths: list[Path] = []
|
| 70 |
+
|
| 71 |
+
for (horizon, flip), by_variant in sorted(
|
| 72 |
+
groups.items(), key=lambda item: (int(item[0][0]), item[0][1])
|
| 73 |
+
):
|
| 74 |
+
budgets = sorted(
|
| 75 |
+
{budget for values in by_variant.values() for budget in values},
|
| 76 |
+
key=int,
|
| 77 |
+
)
|
| 78 |
+
x_base = list(range(len(budgets)))
|
| 79 |
+
fig, ax = plt.subplots(figsize=(10, 6), constrained_layout=True)
|
| 80 |
+
|
| 81 |
+
for variant in variants:
|
| 82 |
+
x = [value + offsets[variant] for value in x_base]
|
| 83 |
+
values = [by_variant[variant][budget] for budget in budgets]
|
| 84 |
+
means = [mean(item) for item in values]
|
| 85 |
+
stds = [pstdev(item) for item in values]
|
| 86 |
+
lower = [center - spread for center, spread in zip(means, stds)]
|
| 87 |
+
upper = [center + spread for center, spread in zip(means, stds)]
|
| 88 |
+
|
| 89 |
+
ax.fill_between(
|
| 90 |
+
x,
|
| 91 |
+
lower,
|
| 92 |
+
upper,
|
| 93 |
+
color=colors[variant],
|
| 94 |
+
alpha=0.14,
|
| 95 |
+
linewidth=0,
|
| 96 |
+
)
|
| 97 |
+
ax.plot(
|
| 98 |
+
x,
|
| 99 |
+
means,
|
| 100 |
+
color=colors[variant],
|
| 101 |
+
marker=markers[variant],
|
| 102 |
+
linestyle=linestyles[variant],
|
| 103 |
+
linewidth=2.4,
|
| 104 |
+
markersize=7,
|
| 105 |
+
label=f"{pretty[variant]} mean +/- SD",
|
| 106 |
+
)
|
| 107 |
+
for budget_index, seed_values in enumerate(values):
|
| 108 |
+
for seed_index, value in enumerate(seed_values):
|
| 109 |
+
jitter = seed_jitter[seed_index] if seed_index < 3 else 0.0
|
| 110 |
+
ax.scatter(
|
| 111 |
+
budget_index + offsets[variant] + jitter,
|
| 112 |
+
value,
|
| 113 |
+
color=colors[variant],
|
| 114 |
+
alpha=0.42,
|
| 115 |
+
s=20,
|
| 116 |
+
edgecolors="none",
|
| 117 |
+
zorder=3,
|
| 118 |
+
)
|
| 119 |
+
|
| 120 |
+
flip_label = flip.replace("p", ".")
|
| 121 |
+
ax.set_title(
|
| 122 |
+
f"HalfCheetah HV | H={horizon} | flip={flip_label} | "
|
| 123 |
+
"coverage=1.3 | ref=(-5000, -7000)"
|
| 124 |
+
)
|
| 125 |
+
ax.set_xlabel("Budget B")
|
| 126 |
+
ax.set_ylabel("Hypervolume (million)")
|
| 127 |
+
ax.set_xticks(x_base, budgets)
|
| 128 |
+
ax.grid(alpha=0.25)
|
| 129 |
+
ax.legend(frameon=False, title="3 seeds per point")
|
| 130 |
+
|
| 131 |
+
output_path = PLOTS / (
|
| 132 |
+
"hv_by_budget_mo-halfcheetah-v5_braxvmap_"
|
| 133 |
+
f"H{horizon}_flip{flip}_refm5000_m7000.png"
|
| 134 |
+
)
|
| 135 |
+
fig.savefig(output_path, dpi=180)
|
| 136 |
+
plt.close(fig)
|
| 137 |
+
output_paths.append(output_path)
|
| 138 |
+
|
| 139 |
+
return output_paths
|
| 140 |
+
|
| 141 |
+
|
| 142 |
def main() -> None:
|
| 143 |
PLOTS.mkdir(parents=True, exist_ok=True)
|
| 144 |
runs = read_tsv(ANALYSIS / "parsed_hv_runs.tsv")
|
|
|
|
| 148 |
colors = {"a0_resmlp": "#2878B5", "a1_resmlp": "#E07B39"}
|
| 149 |
pretty = {"a0_resmlp": "A0", "a1_resmlp": "A1"}
|
| 150 |
|
| 151 |
+
detailed_paths = plot_detailed_overlays(runs, variants, colors, pretty)
|
| 152 |
+
|
| 153 |
by_variant: dict[str, list[float]] = defaultdict(list)
|
| 154 |
for row in runs:
|
| 155 |
by_variant[row["variant"]].append(float(row["hypervolume"]))
|
|
|
|
| 288 |
)
|
| 289 |
print(f"overview_plot={overview_path}")
|
| 290 |
print(f"top10_plot={PLOTS / 'top10_hv_configs.png'}")
|
| 291 |
+
print(f"detailed_overlay_plots={len(detailed_paths)}")
|
| 292 |
print(f"metrics={ANALYSIS / 'overview_metrics.json'}")
|
| 293 |
|
| 294 |
|