- vermerk.rs: jede Regel, die eine Aktion nach der Grundrechnung ueberstimmt, haengt sich an reason; bitgleich auf 48 672 Anfragen (0 Abweichungen ausser reason) - POSTERIOR=...,fluss (S2 nur am River): echte NL2-Spots holdout +53 276 bb eq; Tor wegen Pflichtfall offen - ENTHALTUNG=passiv: gehaltener Raise im Fehler -> beste passive Linie statt ABSTAIN (Laeufer foldete +EV-Calls) - livefaelle: Kommawerte (POSTERIOR=bluff,schutz,beleg) wurden abgeschnitten - Alle neuen Schalter aus = Live-Stand bitgleich; nichts live geschaltet Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.9 KiB
Python
51 lines
1.9 KiB
Python
#!/usr/bin/env python3
|
|
"""POSTERIOR auf echten Spots, Schritt 1: Flop-/Turn-Spots, in denen der Entscheider auf dieser Strasse gesetzt hat und
|
|
erhoeht wurde (Linie `geraist` aus messung/grosse_calls/population.py), Hand des Entscheiders Top-Paar oder besser.
|
|
|
|
Der Erhoeher bekommt den Read, den der Laeufer live schickt (GEGNER_ZAEHLUNG=raise): `reads.raiseToBet` mit n Faellen,
|
|
k Erhoehungen (Vorgabe n=1, k=0 wie im Owner-Fall 180165100008). Mit POOL_STUFE=rtb liegt die Schaetzung dann bei
|
|
~0,10 (selten erhoehend) und POSTERIOR S2 greift voll.
|
|
|
|
python -I -X utf8 messung/pruefstand/posterior_spots.py <spots2.jsonl> <aus.jsonl> [--n 1 --k 0]
|
|
|
|
Spots enthalten keine Namen (nur Hashes) und bleiben ausserhalb des Repos.
|
|
"""
|
|
import json
|
|
import os
|
|
import sys
|
|
|
|
_hier = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.insert(0, os.path.join(_hier, "..", "..", "lesen"))
|
|
import poolruf_eichung as pe # noqa: E402
|
|
|
|
AB_KLASSE = 3 # top_paar
|
|
|
|
|
|
def main(a):
|
|
ein, aus = a[0], a[1]
|
|
n = int(a[a.index("--n") + 1]) if "--n" in a else 1
|
|
k = int(a[a.index("--k") + 1]) if "--k" in a else 0
|
|
z = 0
|
|
with open(aus, "w", encoding="utf-8", newline="\n") as f:
|
|
for zeile in open(ein, encoding="utf-8"):
|
|
if '"geraist"' not in zeile:
|
|
continue
|
|
sp = json.loads(zeile)
|
|
if sp["strasse"] not in (1, 2) or "geraist" not in sp["linien"]:
|
|
continue
|
|
kl = pe.klasse(sp["held"], sp["brett"])
|
|
if kl < AB_KLASSE:
|
|
continue
|
|
sp["klasse"] = pe.KLASSEN[kl]
|
|
for v in sp["req"]["villains"]:
|
|
if not v.get("folded"):
|
|
pr = v.setdefault("profile", {"hands": 1})
|
|
pr["reads"] = {"raiseToBet": {"n": n, "k": k}}
|
|
f.write(json.dumps(sp, separators=(",", ":")) + "\n")
|
|
z += 1
|
|
print(z, "Spots")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main(sys.argv[1:])
|