Skip to content

betting_combat.features.fighter_stats

fighter_stats — what each fighter did in every fight he had, round by round and then the whole fight (Sam 2026-11-12): one row per fighter per fight per round (round 1..) and one for the whole fight (round 0), keyed fighter_id + bout_id + round, dated by the fight’s day, read in his time order (date, bout_order, then the rounds, the fight row last: row_order).

Nothing here is as of anything: a row is that round as it happened (the one fitted piece, the lines’ call, uses the rounds before its year). The history tables add a fighter’s rows up before each fight (career, last three, exponential, by round number: his round 1s); the model rows take the fight so far from them.

Every row from his side (his; opp_ the opponent’s, done to him), its fight’s rounds from outcomes (official and outside) and its lines from lines.filled (UFCStats’s per round): who fighter, opponent, his corner, his fight number (every pro fight) and official number where round, scheduled rounds, the round’s length and seconds fought, the fight’s seconds before it and at its end, the last scheduled round, a championship round (4-5), rounds left, five rounds, title lines the official lines both ways (LINES: knockdowns, significant and total strikes landed / attempted, by target and position, takedowns, submission attempts, reversals, control), non-significant strikes, neutral time (nobody in control), ctrl_filled (control filled where UFCStats lost it) rates every line a minute fought (_pm); control and neutral shares; accuracy and defence (1 less the opponent’s accuracy on him); where his strikes land and where he aims, where he is hit; his share of the round (each line, _share: ½ when neither did it); margins a minute (_diff_pm); pace (both fighters’ attempts a minute); the exchange (log of landed over absorbed: all, to the head); standing pace (distance strikes a minute of neutral time); ground and pound (ground strikes a minute of control, his and on him); control a takedown, held a takedown against him, reversals a minute held, submission attempts a grappling minute; the wrestling index; power (knockdowns a head strike landed) and chin (knockdowns suffered a head strike taken) lines’ call the chance a judge gives him the round from its lines alone (84% right), a 10-8 each way outcome took the round (1 / ½ / 0), the judges’ share, the points margin, 10-8s for and against, even cards, unanimous, scored_by; judging luck (the judges’ share less the lines’ call, real judges only: cards, totals, verdict), robbed, gifted; he finished it here (KO / submission, how: punch / kick / knee / elbow / choke / joint, standing / ground) or was finished, when (the round’s clock, the fight’s), went the full round; dropped and survived, dropped and still took it, dropped him and did not finish; a submission tried on him and survived, his tried and not finished The fight row: the same over the whole fight (the lines summed over its rounds with lines, every rate on the sums, the lines’ call its rounds’ mean); the fight from his side (W / L / D / NC, by KO / submission / decision, split, end round, share of the fight scheduled, distance, first-round finish, rounds taken and their share, the cards he won, points margin, 10-8s, close, comeback, blown lead, points deducted, luck: rounds taken less the lines’ call); and inside the fight (INSIDE rates over his rounds of a minute or more, two or more): the swing (sd), best and worst round, last less first, slope, the peak and the worst round (by the lines’ call), round 1’s and after round 2’s share of his output against their share of the time, his output and the pace last against first, the lines’ winner changing hands, dominant and badly lost rounds; round 1’s and the last round’s call and who took them.

Round-only columns are blank on the fight row and the fight’s own on the rounds; a rate without its denominator (no attempts, no takedowns, no control) is blank, the history tables pooling the counts instead. Outside fights (Cito’s) have no lines: their rows hold the outcome (has_lines 0). A side without a fighter id (an outside opponent we do not know) has no rows.

Classes

FighterStatsTable

Bases: FeatureTable

features.fighter_stats: one row per fighter per fight per round, and one per fight (round 0).

compute

compute(base: Base) -> pd.DataFrame

Functions

rates

rates(D: pd.DataFrame) -> pd.DataFrame

Every rate of a round’s (or a fight’s) lines: D his counts (COUNTS, plain), the opponent’s (opp_), secs fought.

sides

sides(oc: pd.DataFrame) -> pd.DataFrame

outcomes from each fighter’s side: one row per fighter (with an id) per row of it, his columns plain, the opponent’s opp_.