Benchmark harness and mark detection: paired simulation, reader, benchmark binary
Secures work in progress so the rake branch and the shell repo can be merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//! The client's own label of a player (`villains[].marke`), used until we have numbers.
|
||||
//!
|
||||
//! Assumption, not measured: a player the client marks as a beginner or fish plays like a passive
|
||||
//! calling station. No marked player exists in the logs so far (`specialPlayerTagConfig` is off at
|
||||
//! the measured tables), so these values are unchecked. Measured fields always win.
|
||||
|
||||
use super::profile::Profile;
|
||||
|
||||
/// What a beginner or fish is assumed to do where nothing is measured.
|
||||
const WEAK_PLAYER: Profile = Profile {
|
||||
vpip: Some(0.45),
|
||||
pfr: Some(0.10),
|
||||
fold_to_bet: Some(0.25),
|
||||
aggression: Some(0.20),
|
||||
};
|
||||
|
||||
fn prior(mark: &str) -> Option<Profile> {
|
||||
matches!(mark, "Anfaenger" | "FISH").then_some(WEAK_PLAYER)
|
||||
}
|
||||
|
||||
/// `measured` with its missing fields filled from the mark. Unknown marks change nothing.
|
||||
pub fn with_mark(measured: Option<Profile>, mark: &str) -> Option<Profile> {
|
||||
let Some(prior) = prior(mark) else {
|
||||
return measured;
|
||||
};
|
||||
let known = measured.unwrap_or_default();
|
||||
Some(Profile {
|
||||
vpip: known.vpip.or(prior.vpip),
|
||||
pfr: known.pfr.or(prior.pfr),
|
||||
fold_to_bet: known.fold_to_bet.or(prior.fold_to_bet),
|
||||
aggression: known.aggression.or(prior.aggression),
|
||||
})
|
||||
}
|
||||
@@ -9,6 +9,7 @@ pub mod call_floor;
|
||||
pub mod fold_chance;
|
||||
pub mod fold_equity_scale;
|
||||
pub mod made_ladder;
|
||||
pub mod mark;
|
||||
pub mod pot_trace;
|
||||
pub mod preflop_role;
|
||||
pub mod profile;
|
||||
|
||||
@@ -17,7 +17,7 @@ pub struct Thresholds {
|
||||
impl Thresholds {
|
||||
pub const BASE: Thresholds = Thresholds {
|
||||
call_margin: 0.02,
|
||||
value_raise: 0.62,
|
||||
value_raise: 0.58,
|
||||
abstain_band: 0.015,
|
||||
fold_equity_scale: 1.0,
|
||||
range_width_scale: 1.0,
|
||||
|
||||
Reference in New Issue
Block a user