poolwelt_decke: runner for stage 0 and coarse stage 1, started 17:29

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:29:23 +01:00
co-authored by Claude Opus 5.5
parent e60ff6a6b5
commit f24ad099f3
3 changed files with 76 additions and 1 deletions
+4 -1
View File
@@ -7,7 +7,7 @@ tor: info – keine Schaltentscheidung. Ausgewiesen wird immer ein Intervall [de
decke: nicht anwendbar (Größenmessung); Auflösung je Zeile: Standardfehler ≤ 3 bb/100 angestrebt
abbruch: Stufe 0 und Stufe 1 grob zuerst; die Tabelle je Typ (48 Typen) erst, wenn Stufe 0 die Plausibilitätsprüfung besteht
quelle: Sim: Welt v4 (v4-8a902a0815, sim-gekauft, Zweig claude/sim-gekauft-905238) im Motor portiert (Zweig claude/poolwelt 4695e887, Abgleich 5.000 Prüfvektoren); Zählungen welt_v4_n (1e6da9bd)
status: geplant
status: laeuft
ergebnis: –
entscheidung: info
punkt: –
@@ -25,3 +25,6 @@ Werkzeug: `motor decke` (entscheiden/motor/src/pool/, Zweig `claude/poolwelt`).
Reihenfolge (Hauptsession): Stufe 0, Stufe 1 grob (~70 min), Tabelle je Typ für das README (`<!-- AUTO:decke -->`, Erzeuger `lesen/decke_readme.py`), Stufe 2 (p = 0,5 / 0,8 und robust).
Benannte Verzerrungen, die die Decke heben: Pool wehrt sich nicht (p=1); Vorflop-Folds der Welt 1,5–3,8 Punkte zu hoch; River-Reichweiten zu schmal (beides v4, Fix kommt als v4.1). Senkend: Held ohne Typ-Reads, beste Antwort nur in unserer Abstraktion (untere Schranke der echten besten Antwort). Untere Grenze mit freier Kartenzuordnung im Band ist bewusst pessimistisch.
Spalte „Motor (volle Engine)“ liefert sim-gekauft aus tisch6 (gleiches Teilspiel, gleicher Typ-Schlüssel); „ausgeschöpft %“ nur gegen diese Spalte, sonst leer.
# 02.12. 17:29 Start
Stufe 0 (voll, mix, Lernen 0,01 min je Sitz, 0,2 Mio Haende je Sitz, 8 Faeden), danach Stufe 1 grob (p=1, 10 min je Sitz), ueber `lauf.py` (Motorplatz). Schwellen intern 10 GB / SSD 15 GB (Hauptsession). Mac-Last ~200: Zeiten nicht vergleichbar.
@@ -0,0 +1 @@
77203
+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/env python3
"""poolwelt_decke: Stufe 0 (unser Baum gegen die Pool-Welt, nur Auswertung) und danach Stufe 1 grob (beste Antwort p=1, 10 min je Sitz), voller Tisch.
python3 messung/innovation/poolwelt_decke/lauf.py
Jeder Motor-Prozess ueber werkzeuge/motorplatz.py, nice 10, 8 Faeden. Ergebnis: je Stufe JSON-Zeilen (nur angehaengt) unter <AUS>.
Schwellen (Hauptsession 02.12.): SSD 15 GB, intern 10 GB; darunter wird gewartet (alle 5 min), nicht abgebrochen. Not-Aus: Datei <AUS>/stop.
PID: messung/innovation/poolwelt_decke/STARTER.pid. Stand: <AUS>/stand.json (atomar).
"""
import json
import os
import shutil
import subprocess
import sys
import time
HIER = os.path.dirname(os.path.abspath(__file__))
WURZEL = "/Users/marcmintel/Projects/pokerfreak"
D = "/Volumes/Alpha SSD/pokerfreak-daten"
AUS = D + "/innovation/poolwelt_decke"
EXE = "/Users/marcmintel/Projects/fremd/motor-mac/bin/pokerbench-poolwelt-decke"
GRUND = D + "/grundstrategie-mitzaehler"
SCHWELLE = {AUS: 15.0, "/": 10.0}
FAEDEN = "8"
def stufen():
kopf = [EXE, "decke", "sechs100", GRUND, "2000-600-400", "200", GRUND + "/sechs100-v2.bin", D + "/poolwelt/welt_v4.json", "mix"]
rest = ["teil=voll", "zaehlung=" + D + "/poolwelt/welt_v4_n.json"]
return [("stufe0", kopf + ["1.0", "0.01", FAEDEN, "0.2"] + rest),
("stufe1_grob", kopf + ["1.0", "10", FAEDEN, "0.2"] + rest + ["ausgabe=" + AUS + "/gegen-stufe1"])]
def atomar(pfad, obj):
with open(pfad + ".tmp", "w") as f:
json.dump(obj, f, indent=1)
os.replace(pfad + ".tmp", pfad)
def main():
os.makedirs(AUS, exist_ok=True)
with open(os.path.join(HIER, "STARTER.pid"), "w") as f:
f.write(str(os.getpid()))
stand_pfad = AUS + "/stand.json"
stand = json.load(open(stand_pfad)) if os.path.exists(stand_pfad) else {"stufen": {}}
stop = lambda: os.path.exists(AUS + "/stop")
for name, argv in stufen():
if stand["stufen"].get(name, {}).get("status") == "fertig":
continue
while any(shutil.disk_usage(p).free / 1e9 < g for p, g in SCHWELLE.items()):
if stop():
return 1
time.sleep(300)
if stop():
return 1
stand["stufen"][name] = {"status": "laeuft", "start": time.strftime("%Y-%m-%d %H:%M:%S"), "argv": argv}
atomar(stand_pfad, stand)
t = time.time()
env = dict(os.environ, MOTOR_FLACH="1")
with open(AUS + "/%s.jsonl" % name, "a") as aus, open(AUS + "/%s.log" % name, "a") as log:
rc = subprocess.call([sys.executable, os.path.join(WURZEL, "werkzeuge", "motorplatz.py"), "--", "nice", "-n", "10"] + argv,
stdout=aus, stderr=log, env=env)
stand["stufen"][name].update({"status": "fertig" if rc == 0 else "fehler", "rc": rc, "sekunden": round(time.time() - t)})
atomar(stand_pfad, stand)
if rc != 0:
return rc
return 0
if __name__ == "__main__":
sys.exit(main())