Files
pokerfreak/src/bin/adaptive_gap.rs
T
mmintelandClaude Opus 4.8 1492fb6a38 Synthetik-Labor: Population, Zwillings-Tor, adaptive Liga, Optimizer, Sim-to-Real
Ersetzt die irrefuehrende Oracle-Leiter durch eine ehrliche Messmethodik
(Oracle aus, Read via Memory/Posterior gegen eine gezogene Gegner-Population).

Stufen:
- 0 Exploitation-Luecke: +18.98 bb/100 gegen die gezogene Population
- 1 Kalibrierung an echte HUD-Daten (lesen/kalibrierung.py)
- 2 Zwillings-Tor (EGTA + Exploitability-Waechter): Offense +43.95,
  Boden gto -36.25 (verliert gegen Balancierte - die Oracle-verdeckte Wurzel)
- 3 Adaptive Liga L0-L3 (reaktiv / modellierend / Liga)
- 4 Sim-to-Real: HUD-Gap (sim::simreal) + Outcome-Abgleich (lesen/liveabgleich.py):
  real -266.75 vs Sim +43.95 => Gap -311; A/B-Pipeline + Runbook fertig,
  nur der geldechte Live-Lauf unter beiden Armen bleibt offen
- 5 Optimizer (Diagonal-CMA-ES, parallel): Nemesis -414.81 bb/100

Befunde und Architektur in docs/notizen/. Lab-Tests gruen
(Rust lib 92/0, python liveabgleich/kalibrierung/gegnersignal gruen).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-11 09:57:32 +01:00

42 lines
1.8 KiB
Rust

//! Stufe 3 of the synthetic lab: how much does an ADAPTING opponent change the engine's edge?
//!
//! For each drawn opponent, play the engine heads-up (inferring the opponent from session memory, its
//! real exploitation path) over the SAME deals twice: once with the opponent held static (the Stufe-0
//! memory baseline), once with the opponent adapting its ruleset to the hero's observed aggression.
//! The paired per-deal difference is the bb/100 the engine's *stationary* read is worth against a
//! *moving* target — the first measurement of mind-game pressure in this work.
//!
//! Run: `cargo run --release --bin adaptive_gap`.
use rechner::sim::adaptive::{adaptive_effect, Adapt, AdaptReport};
use rechner::sim::population::Population;
const SEED: u64 = 0x5EED_0001;
const OPPONENTS: usize = 48;
const DEALS: u32 = 400;
fn line(r: &AdaptReport) {
let decisive = r.delta_bb_per_100.abs() - r.ci95 > 0.0;
println!(
" {:8} static {:+7.2} adaptiv {:+7.2} -> DELTA {:+7.2} bb/100 (paired +-{:.2}, anytime +-{:.2}) {}",
r.style,
r.static_bb_per_100,
r.adaptive_bb_per_100,
r.delta_bb_per_100,
r.ci95,
r.anytime_ci95,
if decisive { "SIGNIFIKANT" } else { "n.s." },
);
}
fn main() {
let pop = Population::micro();
println!("=== Stufe 3: adaptive Gegner — was kostet der stationaere Read gegen ein bewegliches Ziel? ===");
println!("{OPPONENTS} Gegner x {DEALS} Austeilungen, heads-up, Engine erschliesst via Memory.");
println!("DELTA = adaptiv - statisch (negativ = die Engine blutet gegen die Reaktion).\n");
line(&adaptive_effect(&pop, OPPONENTS, DEALS, SEED, Adapt::Tighten));
line(&adaptive_effect(&pop, OPPONENTS, DEALS, SEED, Adapt::Loosen));
line(&adaptive_effect(&pop, OPPONENTS, DEALS, SEED, Adapt::Model));
}