betting_combat.contracts.stats
stats.py — the stats tables’ rows: raw facts as each source records them, on our ids. Nothing here is computed (features are built from these, in their own layer).
RoundLine the official stat line's counts (a round's): the shared part of the next twoRoundStat a fighter's official line in one round (Cito / UFCStats, UFC 2 onward)LiveRound the same line as a live reading had it (±3-4 sig strikes, corrected later)LiveTotal a fighter's running fight totals as a live reading had themSnapshot one live reading of a bout: status, round, the clock, and the reading as sentFightEvent a moment of a fight as one source told it: what, when, when we saw itScorecard one judge's score of one round (MMADecisions)Odds one sportsbook's price for one outcome, as seen (Cito; the static history; BFO)LinePath one fighter's line in one bout from its open to its close (BestFightOdds)CareerFight one fight of a fighter's pro career outside our bouts' data (Cito careers)Ranking a fighter's place on a board on a day (Cito serves today only: we record it)Classes
CareerFight
Bases: OnFighter
One fight of a pro career (inside the UFC or not), as Cito’s careers list it.
FightEvent
Bases: OnBout
A moment of a fight as one source told it: at when it happened, seen_at when we
learned it (their gap is the source’s lag).
FightMoment
Bases: StrEnum
LinePath
Bases: OnBout
One fighter’s line in one bout, open to close: decimal odds as the source shows them (the
vig in). close_lo .. close_hi: the lowest and highest close across its books; path
the line from the open to the close (BestFightOdds: at most 10 points, the books’ mean, no
times); change_pct the source’s own move since the open.
LiveRound
Bases: RoundLine, OnBout, OnFighter
A fighter’s line in one round as one live reading had it.
LiveTotal
Bases: OnBout, OnFighter
A fighter’s running fight totals as one live reading had them (Cito’s liveStats: the fight
so far, no target / position split). Some fights’ readings carry these and no round lines.
Odds
Bases: OnBout
One book’s price for one outcome as seen (a new row only when it changes).
Ranking
Bases: OnFighter
A fighter’s place on one board on one day.
RoundLine
Bases: Contract
A round’s counts, as UFCStats and Cito write them (None: not recorded, the 1990s).
RoundStat
Bases: RoundLine, OnBout, OnFighter
A fighter’s official line in one round.
Scorecard
Bases: OnBout
One judge’s score of one round, oriented to the bout’s fighter A.
Snapshot
Bases: OnBout
One live reading of a bout (a Cito snapshot or state), and the reading itself as the source sent it.
TimeSource
Bases: StrEnum