feat: omega curve and unseen-N, the two steps before psi
omega.md: a plateau at [1,4] that does not track the domain across a 4.7x range, so the bandwidth is a knob that was set wrong rather than a defect to design around. omega=8 is an optimisation cliff, not a mis-tune. The project default of 10 is outside the plateau. scale.md: one parameter set works at an entity count it never trained on -- trained on N<=16 it beats the oracle at N=32 -- and a lookup table does it too. Read against an oracle because the mse/floor ratio is not comparable across N, which is asserted as a test rather than claimed in prose. The cost runs large->small only, at 2.28x, which makes it the pooling's 1/deg dilution rather than a degree-distribution shift. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCydQraDSoZ9WoTm2v23Eb
This commit is contained in:
8 files changed
+467
-19
No files matched your search
@@ -0,0 +1,39 @@
|
||||
"""The omega curve. Prints all of it, which is the point.
|
||||
|
||||
omega sets the CPPN's bandwidth. `unseen.md` found a 17x swing between two hand-picked values
|
||||
and every chess number sits at one of them, unexamined. This decides which of two things that
|
||||
is: a knob that was set wrong (broad plateau -> document it, choose per domain, leave
|
||||
AffectiveCPPN alone) or an architectural defect (narrow, domain-dependent optimum -> a learned
|
||||
or multi-scale frequency is a mechanism question worth asking).
|
||||
|
||||
THE TRAP, stated so it cannot be walked into: this reports the whole curve. Picking the omega
|
||||
that beats table+interp and quoting that number would be tuning a mechanism until it wins,
|
||||
which is the move AGENTS.md exists to forbid.
|
||||
"""
|
||||
import glob, json, re, statistics as st
|
||||
|
||||
REF = {"random": 0.00016, "band": 0.00006} # table+interp, from unseen.md
|
||||
|
||||
|
||||
def load(path):
|
||||
return [r for r in json.load(open(path))["rows"] if r["arm"] == "rp"]
|
||||
|
||||
|
||||
for kind in ("random", "band"):
|
||||
files = sorted(glob.glob(f"results/sweep_{kind}_w*.json"),
|
||||
key=lambda f: float(re.search(r"_w([\d.]+)\.json", f).group(1)))
|
||||
if not files:
|
||||
print(f"{kind}: nothing yet")
|
||||
continue
|
||||
print(f"\n{'=' * 78}\n{kind.upper()} hold-out — omega curve, 8 seeds"
|
||||
f" (table+interp reference: {REF[kind]:.5f})\n{'=' * 78}")
|
||||
print(f"{'omega':>6} {'seen':>10} {'unseen':>10} {'u/s':>6} {'vs ref':>8} "
|
||||
f"{'seeds<ref':>10} per-seed unseen")
|
||||
for f in files:
|
||||
w = float(re.search(r"_w([\d.]+)\.json", f).group(1))
|
||||
rs = load(f)
|
||||
seen, uns = st.mean([r["seen"] for r in rs]), st.mean([r["unseen"] for r in rs])
|
||||
beat = sum(1 for r in rs if r["unseen"] < REF[kind])
|
||||
per = " ".join(f"{r['unseen']:.5f}" for r in sorted(rs, key=lambda r: r["seed"]))
|
||||
print(f"{w:>6g} {seen:10.5f} {uns:10.5f} {uns / seen:6.2f} "
|
||||
f"{uns / REF[kind]:8.2f}x {beat:>7}/8 {per}")
|
||||
Reference in new issue
Block a user