Rewrite the manuscript for outside readers; move formal results to App. A
Follow the style of the abstract in the remaining sections: results in words first, conditions up front, physical quantities instead of codes. A survey of Computers & Geosciences papers is recorded in docs/research/paper-style-survey.md. Replace repository codes with descriptive names in the text, tables and captions (10 dB, half-anchor, SMC mean, SMC bank, calibrated sonic); configs, outputs and code keep the codes, mapped in paper/README.md. Remove symbols that carried two meanings. Put Methods before Theory. Section 5 now states each result in words and Appendix A holds the formal statements with their proofs. Add tables of results and symbols, a table of failures with causes and lessons, a worked example in Sec. 6.6 and practical advice in Sec. 7. Move the protocol record and secondary results to a new Appendix C. The main text falls from about 20,600 to 15,400 words. Corrections from two rounds of review: state both pass rules (the bank claim has no margin), compare against the best deterministic tie, define calibration per function, drop the uninterpretable Berkson bounds at c = 2 from the table, define the SNR and noise, disclose the sigma_b mismatch, and correct 29-35% to 30-35%. Drop tab:p1 and fig:f3vol. No verdict, threshold or protocol changes. The figure scripts now draw the new names, but the figures still need regenerating on a machine with outputs/*/summary; red notes in the captions mark this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,10 @@ WHITE = "#ffffff"
|
||||
SEQ_BLUE = LinearSegmentedColormap.from_list("seq_blue", ["#f0f5fc", "#86b6ef", "#2a78d6", "#104281"])
|
||||
RAMP4 = ["#86b6ef", "#5598e7", "#256abf", "#104281"] # ordinal ramp for σ (as in scripts/13)
|
||||
REGIMES = ["R10", "R0", "Rm5", "R0h", "R10tb"]
|
||||
METHODS = [("B3b", "B3b"), ("B3c", "B3c"), ("B3c-R", "B3c-R"), ("B3d", "B3d"), ("B3d-Sa", "B3d-Sa"), ("M2-Sa", "M2-Sa")]
|
||||
REGIME_LABELS = {"R10": "10 dB", "R0": "0 dB", "Rm5": "\u22125 dB", "R0h": "half-anchor", "R10tb": "two-anchor"} # names used in the paper
|
||||
METHODS = [("B3b", "Calibrated sonic"), ("B3c", "Correlation tie"), ("B3c-R", "Phase-est. correlation"), ("B3d", "Anchor mean"),
|
||||
("B3d-Sa", "SMC mean"), ("M2-Sa", "SMC bank")]
|
||||
METHOD_LABELS = {"B3a": "sonic", "B3b": "cal. sonic", "B3c": "corr. tie", "B3c-R": "phase corr.", "B3d": "anchor mean"} # short names in cells
|
||||
|
||||
|
||||
def load_script(name: str):
|
||||
@@ -159,7 +162,7 @@ def p2_phase() -> None:
|
||||
ax.text(j, i - 0.12, f"[{fci.format(r[k + '_lo'])}, {fci.format(r[k + '_hi'])}]", ha="center",
|
||||
va="center", fontsize=6, color=col)
|
||||
if k == "ratio":
|
||||
ax.text(j, i - 0.36, f"{r.best}, {'pass' if r.cell_pass else 'fail'}", ha="center", va="center",
|
||||
ax.text(j, i - 0.36, f"{METHOD_LABELS.get(r.best, r.best)}, {'pass' if r.cell_pass else 'fail'}", ha="center", va="center",
|
||||
fontsize=5.5, color=col)
|
||||
ax.set_xticks(range(len(Ns)), [str(n) for n in Ns])
|
||||
ax.set_yticks(range(len(cs)), [f"{c:g}" for c in cs])
|
||||
@@ -198,14 +201,14 @@ def h2b() -> None:
|
||||
ax.set_xscale("log")
|
||||
ax.set_xticks([0.3, 0.5, 1, 2, 5, 10], ["0.3", "0.5", "1", "2", "5", "10"])
|
||||
ax.minorticks_off()
|
||||
ax.set(xlabel=r"posterior width $\sigma_{\mathrm{post}}$ (ms)", ylabel="band RMSE ratio, M2-Sa / B3d-Sa",
|
||||
ax.set(xlabel=r"posterior width $\sigma_{\mathrm{post}}$ (ms)", ylabel="band RMSE ratio, SMC bank / SMC mean",
|
||||
ylim=(0.6, 1.05))
|
||||
panel(ax, "a")
|
||||
lo, hi = 0.6, 1.05
|
||||
bx.plot([lo, hi], [lo, hi], color=fs.AXIS, lw=0.9)
|
||||
bx.text(0.74, 0.695, "ratio = bound", rotation=45, rotation_mode="anchor", fontsize=7, color=fs.INK2)
|
||||
bx.set(xlim=(lo, hi), ylim=(lo, hi), aspect="equal", xlabel=r"population bound $1/B(\sigma_{\mathrm{post}})$",
|
||||
ylabel="band RMSE ratio, M2-Sa / B3d-Sa")
|
||||
bx.set(xlim=(lo, hi), ylim=(lo, hi), aspect="equal", xlabel=r"classical bound $\rho^\star_{\mathrm{cl}}(\sigma_{\mathrm{post}})$",
|
||||
ylabel="band RMSE ratio, SMC bank / SMC mean")
|
||||
panel(bx, "b")
|
||||
handles = [Line2D([], [], ls="", marker="o", color=fs.BLUE, mew=0, label=r"$N = 16$"),
|
||||
Line2D([], [], ls="", marker="o", mfc="none", mec=fs.ORANGE, label=r"$N = 4$")]
|
||||
@@ -237,7 +240,7 @@ def p2r_grid() -> None:
|
||||
ax.set_yticks(range(len(METHODS)), [lab for _, lab in METHODS])
|
||||
ax.set_xticks(range(len(cols)), [f"{c:g}" for _, c in cols])
|
||||
sec = ax.secondary_xaxis("top")
|
||||
sec.set_xticks([len(cs) * k + (len(cs) - 1) / 2 for k in range(len(REGIMES))], REGIMES)
|
||||
sec.set_xticks([len(cs) * k + (len(cs) - 1) / 2 for k in range(len(REGIMES))], [REGIME_LABELS[r] for r in REGIMES])
|
||||
sec.tick_params(length=0, labelsize=7.5, labelcolor=fs.INK)
|
||||
sec.spines["top"].set_visible(False)
|
||||
for k in range(1, len(REGIMES)):
|
||||
|
||||
@@ -42,7 +42,7 @@ def bench_s1() -> None:
|
||||
d = pd.read_csv(SUMMARY / "s1_cells.csv")
|
||||
cs, Ns = sorted(d.c.unique()), sorted(d.n_train.unique())
|
||||
norm, cmap = fs.diverging_norm(0.65, 1.0, 1.15), fs.DIVERGING
|
||||
rows = [("pm_best", r"B3d-Sa / best point tie"), ("m2_pm", r"M2-Sa / B3d-Sa")]
|
||||
rows = [("pm_best", r"SMC mean / best point tie"), ("m2_pm", r"SMC bank / SMC mean")]
|
||||
fig, axes = plt.subplots(2, len(REGIMES), figsize=(F.WIDTH, 3.55), sharex=True, sharey=True, layout="constrained")
|
||||
for i, (k, lab) in enumerate(rows):
|
||||
for j, reg in enumerate(REGIMES):
|
||||
@@ -64,7 +64,7 @@ def bench_s1() -> None:
|
||||
for s in ax.spines.values():
|
||||
s.set_visible(False)
|
||||
ax.tick_params(length=0)
|
||||
ax.set_title(f"({'ab'[i]}{j + 1}) {reg}", loc="left", fontsize=8, color=fs.INK, pad=3)
|
||||
ax.set_title(f"({'ab'[i]}{j + 1}) {F.REGIME_LABELS[reg]}", loc="left", fontsize=8, color=fs.INK, pad=3)
|
||||
if i == 1:
|
||||
ax.set_xlabel(r"wells $N$")
|
||||
if j == 0:
|
||||
@@ -117,12 +117,13 @@ def bench_s8(N: int = 16) -> None:
|
||||
H = np.where(use, np.asarray(c["H"], float), np.nan)
|
||||
ax.plot(f, H, color=col, **STYLE_S8[m])
|
||||
ax.set(xlim=(0, fmax + 5), ylim=(-1.4, 1.6))
|
||||
ax.set_title(f"({'ab'[i]}{j + 1}) {reg}, " + rf"$\Delta = {d:g}$ ms", loc="left", fontsize=8, color=fs.INK, pad=3)
|
||||
ax.set_title(f"({'ab'[i]}{j + 1}) {F.REGIME_LABELS[reg]}, " + rf"$\Delta = {d:g}$ ms", loc="left", fontsize=8, color=fs.INK, pad=3)
|
||||
if i == 1:
|
||||
ax.set_xlabel("frequency (Hz)")
|
||||
if j == 0:
|
||||
ax.set_ylabel(r"transfer $\hat H(f)$ vs. Oracle")
|
||||
handles = [Line2D([], [], color=col, label=m, **STYLE_S8[m]) for m, col in cols.items()]
|
||||
S8_LABELS = {"PM2": "midpoint label", "BK2": "two-member bank", "HM2": "two-member hard-min"}
|
||||
handles = [Line2D([], [], color=col, label=S8_LABELS[m], **STYLE_S8[m]) for m, col in cols.items()]
|
||||
handles.append(Line2D([], [], color=fs.INK2, lw=0.9, ls="--", label=r"$\cos(\pi f \Delta)$"))
|
||||
fig.legend(handles=handles, loc="outside lower center", ncol=4)
|
||||
F.save(fig, "bench_s8")
|
||||
|
||||
Reference in New Issue
Block a user