betting_combat.rounds.models.last_round
The last-round model (2026-11-08): the primary (models.primary) for the last round of a 3-round fight
only - the break after round 2, when round 3 is all that is left. 5-round fights stay on the primary.
Research (data/ufc/cito/assess/last_round/, purged 10-fold over cards, fighter purge, 28-day embargo,
the primary’s own folds): the primary refitted on last-round rows alone ties the primary over 2008-26 on
the 3-round last rounds (goes the distance -0.26%, 6 of 10 folds) and made more on the 2026 cards’
last-round bets (distance YES, the decision pair, no KO: +$1,556 on 32 cards at $10k); on 5-round fights
(307 rows) every specialised version was worse than the primary, and fewer outcomes (KO / submission / no
finish, or finish / no finish) were worse than the five.
What it is: PrimaryModel - both engines (LightGBM + the Bayes engine on the prepared inputs) averaged
(BLEND), the start (the clock x the market’s winner x the KO share), the five outcomes of the round (A
by KO, A by submission, B by KO, B by submission, no finish; in the last round ‘no finish’ IS ‘goes the
distance’), the tree and Bayes settings, the league KO share from every training fight’s round-1 row -
with three differences:
rows the round model is fitted on, and prices, 3-round last rounds only (prices: anything
else raises)
context none: on these rows ‘which round’, ‘rounds left’, ‘next is the final round’ and ‘3 or 5’
are constant
inputs FEATURES: the primary’s own 198 (a López selection on these rows, with round 2 against
round 1 for every round statistic among the candidates, was worse in all 10 outer folds)
Classes
LastRoundModel
Bases: PrimaryModel
PrimaryModel on the 3-round last rounds, with no round context.
X
X(d: pd.DataFrame) -> pd.DataFrameprices
prices(d: pd.DataFrame) -> pd.Seriesrefit
refit(rows: pd.DataFrame, before: Any = None, blend: float = BLEND, stats: bool = True) -> LastRoundModelFitted on every priced row (training.clocked) dated before before (None: every row) -
the league KO share from their round-1 rows, the round model from their 3-round last rounds.
round_rows
round_rows(d: pd.DataFrame) -> pd.DataFramewalk_forward
walk_forward(rows: pd.DataFrame, cards: Any, blend: float = BLEND, stats: bool = True) -> AnyEach card in cards (dates, in order) with the model refitted on every row before it
(refit): (card date, fitted model) pairs, one at a time.
Functions
is_last_3r
is_last_3r(d: pd.DataFrame) -> pd.SeriesThe break before the last round of a 3-round fight.
last_round
last_round(blend: float = BLEND, features: Sequence[str] = FEATURES, n_round: int = N_ROUND) -> LastRoundModelAn unfitted last-round model (fit it on the clocked, priced rows of Dataset 1 v2 - all of them: the league KO share reads the round-1 rows; the round model keeps its 3-round last rounds itself).