betting_combat.features.forecasts
forecasts — model 1’s own forecasts as raw material for the second stage (2026-11-14), built the way the stats are: the fight’s rows first, then one fighter’s side of every round, then what is typical for him over his EARLIER fights.
features.forecasts fight x break: model 1's five chances for the coming round (``p_*``: A by KO, A by submission, B by KO, B by submission, no finish), the start it corrected (``s_*``) and the fight from here (``f_*``). Out of sample by construction: the purged pass's rows in research, the card run's own earlier decisions livefeatures.fighter_forecasts fighter x fight x round: the forecast from HIS side (he finishes by KO / submission, he is finished by KO / submission), what happened, so the miss (happened - forecast) is histypical_sums per fighter per fight: the sums of his forecasts and outcomes over his earlier fights only (``history.window_sums``: career and half-life 3 fights), by scope - every round, round 1 / 2 / 3+, and against strikers / wrestlers / grapplers (the opponent's profile style that day)A typical miss is (sum of outcomes - sum of forecasts) / (rounds + PRIOR_ROUNDS): shrunk to zero,
a debut exactly zero with exposure 0. Nothing here reads the fight a row belongs to or anything later.
Classes
FighterForecastsTable
Bases: FeatureTable
features.fighter_forecasts: fighter x fight x round (fighter_rounds).
compute
compute(base: Base) -> pd.DataFrameForecastsTable
Bases: FeatureTable
features.forecasts: model 1’s forecasts per fight per break (the module doc).
compute
compute(base: Base) -> pd.DataFrameFunctions
check
check(F: pd.DataFrame) -> pd.DataFrameThe forecasts frame as the tables expect it: its columns, one row per fight per break, each row’s chances and start a distribution.
fighter_rounds
fighter_rounds(F: pd.DataFrame, labels: pd.DataFrame) -> pd.DataFrameOne row per fighter per forecast round with its answer (labels: bout_id, brk and
features.labels’ y5, coded LABEL_CODE): the forecast and the outcome from his side.
model_class
model_class(y5: pd.Series | np.ndarray) -> np.ndarrayfeatures.labels’ y5 in the models’ class order (CLASSES: 0..3 the finishes, 4 none).
typical_sums
typical_sums(FR: pd.DataFrame, styles: pd.DataFrame, targets: pd.DataFrame | None = None) -> pd.DataFramePer fighter per fight (index fighter_id, bout_id): over his EARLIER fights, the sums of his
forecasts (fc_{q}_{scope}_{w}), of what happened (out_...) and the rounds counted
(n_{scope}_{w}), by scope and window. styles: bout_id, fighter_id and each fighter’s
STYLES weights that day (the opponent’s weigh a round into the vs_ scopes). targets
(fighter_id, bout_id, date, bout_order): fights to price that have no forecast rows yet (a card
to come): they get a row of their own from the fights before them.