mirror of
https://github.com/wassname/evil_MoE.git
synced 2026-06-27 19:47:33 +08:00
fix collision: lift 'deploy hack =0' off the y=0 line in train_vs_deploy
The solid-red deploy line ran straight through the annotation text (tufte collision test). Move it into the empty band above the flat line (axes y=0.12). Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
@@ -455,10 +455,11 @@ def plot_train_vs_deploy(runs: list[dict], out: Path) -> None:
|
||||
ax.plot(xm, ym, color=color, ls=ls, lw=1.8, solid_capstyle="round")
|
||||
if key == "hk_dep" and np.nanmax(ym) < 0.02:
|
||||
deploy_hack_zero = True
|
||||
if deploy_hack_zero: # the route headline: solid-red pinned at 0
|
||||
ax.annotate(r"deploy hack $\equiv 0$", (0.04, 0.0),
|
||||
xycoords=("axes fraction", "data"), color=red, fontsize=8,
|
||||
va="bottom", xytext=(0, 3), textcoords="offset points")
|
||||
if deploy_hack_zero: # the route headline: solid-red pinned at 0.
|
||||
# Lift the label into the empty band above the flat line (collision test:
|
||||
# at y=0 the solid-red deploy line runs straight through the text).
|
||||
ax.annotate(r"deploy hack $\equiv 0$", (0.04, 0.12),
|
||||
xycoords="axes fraction", color=red, fontsize=8, va="bottom")
|
||||
# teacher-off curriculum: shade the teacher-ON region so "seeded here, on-policy
|
||||
# after" stays visible in the C4 bootstrap variant (jobs 93/94).
|
||||
toffs = {r.get("teacher_off") for r in by_arm[arm] if r.get("teacher_off")}
|
||||
|
||||
Reference in New Issue
Block a user