diff --git a/messung/motor/splash_straddle/KARTE.md b/messung/motor/splash_straddle/KARTE.md index e79c8dc2..602747f0 100644 --- a/messung/motor/splash_straddle/KARTE.md +++ b/messung/motor/splash_straddle/KARTE.md @@ -45,3 +45,6 @@ nachfolger: - - Rauch st (rauch_st.txt): 359/359 echte Straddle-Anfragen aus dem Baum, kein ABSTAIN, 117 geaenderte Zuege. Die Live-Exe f09a4d8b laedt straddle.bin schon selbst (MOTOR_STRADDLE Standard an), es fehlte nur die Datei im Live-Datenordner; alt gegen alt 359/359 (aus_st.py). - Live 07:40: straddle.bin + splash5s.bin (Hardlinks) in daten/grundstrategie/motor, Exe 5855b659 (main 7d8cce54), Live-Baum vorgespult. +- Rauch nach Einsatz (live_rauch.py, Live-Exe 5855b659 + Live-Datenordner): 16/16 echte Straddles (zweiter BB >= 1,5 bb) aus dem Baum, + die uebrigen 24 der Stichprobe sind nachgezahlte Blinds (normal gespielt); 150/150 normale Anfragen gleich wie die Sicherung f09a4d8b. + Zurueck: Exe .vor-straddle-20261201 zurueckkopieren und straddle.bin/splash5s.bin(.ok) aus daten/grundstrategie/motor entfernen (Hardlinks, Original bleibt). diff --git a/messung/motor/splash_straddle/live_rauch.py b/messung/motor/splash_straddle/live_rauch.py new file mode 100644 index 00000000..e2d92a6d --- /dev/null +++ b/messung/motor/splash_straddle/live_rauch.py @@ -0,0 +1,23 @@ +"""Rauch nach dem Einsatz (01.12. 07:45): Live-Exe + Live-Datenordner (daten/grundstrategie/motor) auf 40 echten Straddle-Anfragen +(Grund 'Straddle' erwartet) und 150 zufaelligen normalen Anfragen (gleich wie die Sicherung f09a4d8b).""" +import collections, json, random, sys +sys.path.insert(0, "C:/Users/marcm/pf-sicherung/messung/motor/stackoff_preis") +import aus_pruefung as ap +T = "D:/Projects/pokerfreak/entscheiden/motor/target/" +S, N = [], [] +for z in open(ap.LIVE + "/archiv/lauf/schatten.jsonl", "rb"): + if b'"q"' not in z or b"2026-11-3" not in z: + continue + try: + r = json.loads(z) + except ValueError: + continue + q = r.get("q") or {} + bbs = [x for x in q.get("history") or [] if x.get("action") == "POST_BB"] + (S if len(bbs) >= 2 and b'"splash": true' not in z else N).append(r) +random.seed(3); S = random.sample(S, min(40, len(S))); N = random.sample(N, 150) +a = ap.lauf(T + "pokerbench-motor-schatten.exe", S + N, {}) +b = ap.lauf(T + "pokerbench-motor-schatten.exe.vor-straddle-20261201", N, {"MOTOR_STRADDLE": "0"}) +g = lambda x, y: (x.get("action"), round(x.get("size") or 0, 6)) == (y.get("action"), round(y.get("size") or 0, 6)) +print("Straddle:", sum(str(x.get("reason")).startswith("Straddle") for x in a[:len(S)]), "/", len(S), dict(collections.Counter(x.get("action") for x in a[:len(S)]))) +print("normal gleich Sicherung:", sum(map(g, a[len(S):], b)), "/", len(N))