Skip to content

betting_combat.features.labels

labels — every target the models can predict, one row per fight per break (Sam 2026-11-13): the rows of the final table (features.final) and their answers, in one place to filter and run variants from. Built from outcomes alone; never an input.

A break is a decision point: break 0 is the bell of round 1 (nothing fought yet), break k the minute after round k (rounds 1..k fought, round k+1 about to start). A fight has breaks 0..end_round-1: the ones it reached still going. Official UFC fights only (source ufc).

Columns (y_ a target; NaN where it is not defined: a draw or no contest has no winner, a round finished inside has no judges’ score, a market already settled before the break has no answer): keys bout_id, brk, date, bout_order, event_id, kind, fighter_a_id, fighter_b_id, scheduled_rounds, upcoming_round (k + 1), rounds_left (scheduled - k) fight y_a_win, y_draw, y_nc, y_method (ko / sub / dec / dq / nc / other), y_a_ko, y_a_sub, y_a_dec, y_b_ko, y_b_sub, y_b_dec, y_finish (a KO or a submission), y_distance, y_end_round, y_fight_secs, y_margin (A’s points less B’s on the cards, decisions), y_unanimous, y_split (split or majority), y_close the round y_ends_next (the fight ends in round k+1), y_ends_next_ko, y_ends_next_sub, about to y_a_fin_next / y_b_fin_next (who finishes it there), y_survives_next (it does not start end there), y_a_round_next (the judges’ share of round k+1 for A: 1, a half, 0; NaN when finished inside it or not scored), y_a_round_next_lines (its lines’ call), y_round_next_10_8_a / _b, y_round_next_scored_by from here y_before_r2..y_before_r5 (Kalshi’s ‘ends before round j’: a finish in a round < j; (Kalshi’s NaN where j > the scheduled rounds or j <= k+1: settled NO by the break), y_ko_rest markets) (a KO from here), y_no_ko_rest, y_sub_rest, y_dec_pair (a decision with a winner), y_ends_before_last (finished before the last round starts)

The three sets Sam agreed (11-13), the round about to start: set 1 y5: today’s primary’s five outcomes, exactly its rule (JointRoundModel.round_label): 1 A by KO, 2 A by submission, 3 B by KO, 4 B by submission (the round ends that way, the finisher the fight’s winner), 0 it goes on (a DQ or other stoppage too); y_a_round_next (who takes it on the cards) set 2 the spreads of set 1 (A - B: +1 A, -1 B, 0 neither): y_ko_spread_next, y_sub_spread_next, y_fin_spread_next (who finishes it), y_round_spread_next (the cards: +1 A takes it, -1 B, 0 even; a round finished inside goes to the finisher) set 3 y_method_spread_next: one ordered scale, +2 A by KO, +1 A by submission, 0 it goes on, -1 B by submission, -2 B by KO The fight’s (the pre-fight row’s labels; the same on every break): y_win_spread (+1 A wins, -1 B, 0 draw / no contest), y_ko_spread, y_sub_spread, y_fin_spread, y_method_spread (+3 A by KO, +2 A by submission, +1 A by decision, 0 draw / no contest / other, -1 B by decision, -2 B by submission, -3 B by KO).

Classes

LabelsTable

Bases: FeatureTable

features.labels: every official UFC fight’s every break and its answers (module doc).

compute

compute(base: Base) -> pd.DataFrame

Functions

labels

labels(outcomes: pd.DataFrame) -> pd.DataFrame

The labels of every official UFC fight’s every break (module doc), from outcomes.