betting_combat.features.fight_ticks
fight_ticks — features.fight_ticks: fight x round x tick, one row per live reading of a fight (a
Cito capture, about every 9-10 s inside a round): WHAT HAPPENED IN THE TICK - each fighter’s counts since
the reading before it in the round, on our A / B. The base of the in-round side, as ufc.rounds is
what happened in a round: anything thus far (the round so far, the fight so far, rates, against the
usual) is the feature layer’s, built backward from these. Raw first: the readings are ufc.snapshots
(kept whole), their round lines ufc.live_rounds and their fight totals ufc.live_totals.
FightTicksInputs the raw rows (``read``), or handed in (tests)FightTicksTable NAME fight_ticks, KEY (bout_id, captured_at), DATE dateA row (a reading): bout_id, captured_at the fight and Cito’s capture time (the key) event_id, date, fighter_a_id, fighter_b_id tick the reading’s place in its fight (1 the first), by captured_at kind, received_at, lag_s how we got it: an archive read (‘snapshot’: received_at is its first read) or a live one (‘stream’ / ‘state’: received_at is when it reached us) status, degraded Cito’s status (upcoming / live / completed) and its degradedReason (‘source_no_live_clock’: the source showed no clock; the clock is blank) round, elapsed_s the round and its clock, seconds into the round (blank: no clock) fight_s seconds into the fight: 300 x (round - 1) + elapsed_s (five-minute rounds) round_start_at when the round began by this reading: captured_at - elapsed_s interval_s seconds since the round’s last reading with counts (the round’s first: its clock) has_lines, has_totals whether the reading carried the round’s lines / the fight’s totals source how the tick’s counts were read: ‘lines’ (Cito’s round line, its change since the reading before), ‘totals’ (Cito’s fight totals, their change: Cito’s readings to 2026-09-12 carry totals only), blank (not known: the round before not read) correction a count went down (Cito corrected an earlier one): the tick holds the correction catchup the reading just before held no counts (an empty or a clock-only reading), or a count shows for the first time mid-round: the tick may hold what happened before it a_* / b_* what happened in the tick, the 22 counts of a round line (knockdowns, significant / total strikes, takedowns, submission attempts, reversals, control seconds, significant strikes by head / body / leg and by distance / clinch / ground, landed and attempted); from totals the 10 they hold (the split blank)
The counts are the live feed’s (noisy against the official lines, corrected later): the training and the live rows read the same numbers. A round’s first reading holds everything since its bell; the readings after the fight (status completed) hold the last corrections. A reading without counts (empty, or a clock-only reading the live card writes) holds none and breaks nothing: each count takes up from its last known value. A round’s ticks add up to its last line exactly. Upcoming readings (before the fight) hold no counts. Fights without A’s corner known have no counts.
Classes
FightTicksInputs
The raw rows the table reads: the readings, their round lines, their fight totals.
read
read(db: DBClient, schema: str = 'ufc') -> FightTicksInputsFightTicksTable
Bases: FeatureTable
features.fight_ticks: one row per live reading of a fight (module doc).
build
build(db: DBClient, base: Base | None = None) -> dict[str, int]compute
compute(base: Base) -> pd.DataFrameupdate
update(db: DBClient, since: Any, base: Base | None = None) -> dict[str, int]