Skip to content

betting_combat.features.fight

fight — one row per fight on a numbered card or a Fight Night (the ones we trade; Noche UFC and UFC Freedom 250 count numbered, the TUF finales Fight Night), completed or on a card still to come, holding what is known about the fight itself before it starts (Sam 2026-11-11/12), dated by its day and put in time order (bout_order: its place among the day’s fights).

who bout_id, event_id, date, bout_order, status, fighter_a_id, fighter_b_id
card kind, numbered, the event's name, card position (0 the main event), main event,
co-main, section and its rank (main card 0, prelims 1, early prelims 2)
division the weight class, its pounds (a catch weight the two fighters' last divisions'
mean before the day, else ``CATCH_LBS``; open weight ``OPEN_LBS``), women, catch
format title fight, scheduled rounds, five rounds, five rounds without a title
place venue, city, country, in the US
priors how the division's and the venue's earlier fights ended: the decision / KO /
submission shares of the fights before the day, pulled to the league's share before
the day by ``SHRINK`` fights (the very first card: a third each)

Referee, tournament, Apex, start time and the card’s size were dropped (Sam 11-11).

Classes

FightTable

Bases: FeatureTable

features.fight: one row per fight of KINDS cards (bout_id), completed or to come.

compute

compute(base: Base) -> pd.DataFrame

Functions

priors

priors(f: pd.DataFrame, by: str) -> pd.DataFrame

For each fight, each ending’s share among by’s fights before its day (f.end; the fights to come have none), pulled to the league’s share before the day by SHRINK.

scheduled

scheduled(f: pd.DataFrame) -> pd.Series

The scheduled rounds: told, else the round format’s count, else five for a title, three.