betting_combat.rounds.models.v2
The models a card trades on since 2026-10-27, one bundle on the artifact (RoundsArtifact.v2):
the primary (models.primary) in two variants - stats (with the round statistics, read live
at every break) and no_stats (without: the same build on what is known at a break without a
stats feed) - each with its meta model (models.meta), and the card’s clock curve (the Bayes
finish-time curve fitted on every finish before the card: features.dataset_v2.card_curve).
Each strategy row picks its variant (RoundsConfig.primary) and its use of the meta
(RoundsConfig.meta_rule).
primary ``PrimaryModel.refit`` on every priced row of Dataset 1 v2 before the cutoffmeta trained on the three strategies' bets (``backtest.meta_rows``) on the primary's out-of-sample chances (``oos``: per variant, the purged ones of the trading era and, for each later card, the chances of the primary fitted before it), the strategies using it (``meta.STRATEGIES``) only, weighted by uniquenessClasses
V2Models
The bundle (the module doc).
last_round_model
last_round_model() -> PrimaryModel | Nonemodel
model(variant: str) -> PrimaryModelsummary
summary() -> dict[str, Any]Functions
cells_of
cells_of(model: PrimaryModel, rows: pd.DataFrame) -> pd.DataFrameThe model’s chances for rows per engine (lgbm_ / bayes_ / primary_): this
round’s five outcomes and the fight from here (joint.cells: f_*) - the research’s
primary_oos columns.
fit
fit(dataset1_v2: pd.DataFrame, cutoff: dt.date, curve: Any, oos: Mapping[str, pd.DataFrame], keys: pd.DataFrame, fights: pd.DataFrame, minutes: pd.DataFrame, grid: pd.DataFrame, bouts: pd.DataFrame, finish_clock: FinishClock, method_clock: MethodClock | None, strategies: Strategies, variants: tuple[str, ...] = VARIANTS, meta: bool = True, last_round: bool = False) -> V2ModelsBoth variants’ primary and meta, on everything before cutoff (the module doc).
meta False: no meta fitted (no strategy row uses one): the primaries alone.
last_round: the last-round model too, on the same rows (LastRoundModel.refit).
priced
priced(d: pd.DataFrame) -> pd.DataFrameThe rows the primary trains on and prices: the clock and both market starts known.