betting_combat.rounds.models.primary_all_rounds
The primary on the new features (2026-11-14): today’s primary (models.primary: LightGBM and the
Bayes engine averaged 50/50, the start = the clock x the market’s winner x the KO share, the five
outcomes of the round, TREE_PRIMARY, 200 trees, BAYES) with two changes:
inputs the López selection (features.final.FinalTable.selection, 2026-11-13): 4,167 columns of
features.final plus 156 of Dataset 1 v2’s. A features.final column is named here
nf + its name (nfhist_a_sig_l_pm_c): the block stays the name’s first word, so the
Bayes engine’s shrinkage groups (prep.InputPrep.groups) are the table’s blocks
rows every break (rounds_from 0: round 1’s start included), not rounds 2+
and the last-round model (models.last_round: the 3-round last rounds only, no round context) on
the same inputs. Rows are Dataset 1 v2’s (the start’s columns: the clock, the market, the KO share)
joined to features.final on the same ids and break (with_final).
Research: data/ufc/cito/assess/final_v1 (s01 like for like, s02 López, s03 variants, s05 the purged out-of-sample pass through this file).
Classes
AllRoundsModel
Bases: PrimaryModel
PrimaryModel on every break with the new inputs (the module doc).
refit
refit(rows: pd.DataFrame, before: Any = None, blend: float = BLEND, stats: bool = True) -> AllRoundsModelFitted on every priced row (training.clocked) dated before before (None: every
row) of with_final’s frame.
LastRoundNew
Bases: LastRoundModel
LastRoundModel with the new inputs (the module doc).
refit
refit(rows: pd.DataFrame, before: Any = None, blend: float = BLEND, stats: bool = True) -> LastRoundNewFunctions
all_rounds
all_rounds(blend: float = BLEND, inputs: Sequence[str] | None = None, n_round: int = N_ROUND) -> AllRoundsModelAn unfitted all-rounds model (fit it on the clocked, priced rows of with_final’s frame).
features
features(name: str = SELECTION) -> tuple[str, ...]The models’ inputs: the selection’s Dataset 1 v2 columns and its features.final columns
(as NF + name), without the round context (X adds it).
last_round_new
last_round_new(blend: float = BLEND, inputs: Sequence[str] | None = None, n_round: int = N_ROUND) -> LastRoundNewAn unfitted last-round model on the new inputs (fit it on the clocked, priced rows of
with_final’s frame: the league KO share reads the round-1 rows; the round model keeps its
3-round last rounds itself).
with_final
with_final(rows: pd.DataFrame, final: pd.DataFrame, name: str = SELECTION) -> pd.DataFrameDataset 1 v2’s rows (fight_id, round_idx) with features.final’s selected columns
(bout_id, brk: the same fight and the same break) as NF + name; a row the table lacks
is dropped (the table starts in 2015 and holds numbered / Fight Night cards only).