"""SCI Figure Hub — Multi-Seed Training Convergence Curve (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#E64B35", "#4DBBD5", "#00A087", "#8491B4"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42}) steps = np.linspace(0, 100, 120) runs = [ ("Ours", 92 - 64 * np.exp(-steps / 18), 1.8 + 2.4 * np.exp(-steps / 25)), ("Method A", 86 - 58 * np.exp(-steps / 26), 2.3 + 2.8 * np.exp(-steps / 30)), ("Method B", 79 - 52 * np.exp(-steps / 32), 2.6 + 3.0 * np.exp(-steps / 35)), ("Vanilla", 71 - 46 * np.exp(-steps / 40), 3.1 + 3.2 * np.exp(-steps / 40)), ] fig, ax = plt.subplots(figsize=(3.5, 2.45), dpi=300) for idx, (lbl, mu, sd) in enumerate(runs): ax.fill_between(steps, mu - sd, mu + sd, color=PALETTE[idx], alpha=0.16, lw=0) ax.plot(steps, mu, color=PALETTE[idx], lw=1.6 if idx == 0 else 1.2, label=lbl) ax.set_xlabel("Training Steps (×10³)") ax.set_ylabel("Validation Accuracy (%)") ax.set_ylim(20, 98) ax.yaxis.grid(True, ls="--", lw=0.45, alpha=0.45) ax.legend(frameon=False, loc="lower right", fontsize=7) fig.tight_layout() fig.savefig("training_convergence.pdf", bbox_inches="tight")