betting_combat.features.inround_rows
inround_rows — the in-round model’s rows (Sam 2026-11-18): one row at the END of every 30-second block of the fight - the
two blocks of each break (-2, -1: the minute before each round’s bell) and the round’s (0..) - on the cards we trade since
2015 (features.inround_blocks: draw 0 the live feed on the rounds Cito read, draws 1-5 simulated), everything known at
that moment and nothing after it; one function for the training rows and the card run.
the moment block j's end on Cito's fight clock: its stats are every block up to it as the live feed had shown them by then (each block what the feed posted while its 30 s ran - Cito's delay inside it: a strike in a block's last seconds shows in the next, as live; the round's last seconds and the feed's fixes land in the break), its prices the quotes at the block's end, its labels (``features.inround_labels``) what happened after itthe rows every block of a round the fight reached - its break's two and its own - but the one a finish came in (a finished fight's last block is no moment; a decision's last block is the horn). A break row belongs to the round coming: its "round" is that round, nothing fought in it yet
groups, both fighters (a: fighter A, b), as fighter_stats' rates (``rates``: per minute, shares, accuracy anddefence, the A-against-B diffs and exchange) over the group's seconds: blk_ block j: the counts, a / b and d = a - b (a break block: what the feed posted in it) blk3_ blocks j-2..j of the round: the counts (a / b / d) and every rate (a break row: counts 0, rates blank - nothing fought in the round yet) rnd_ the round so far, blocks 0..j: every rate (a break row: blank) prevrd_ the round before as live showed it by the moment: its blocks + what the break posted up to the moment (a break row: its break blocks so far; a round row: the whole break); blank where it is missing (Cito did not clock it; a simulated round left out for a missing count) fight_ the fight so far: the rounds before, their breaks up to the moment, this round so far: every rate (blank where a round before is missing) typ_ the round so far against each fighter's typical for this round (features.final's round-start ``up_{x}_*_c``: his per-minute rates and control share) - ``typ_{x}_{rate}`` - and against what his opponent typically allows (``up_{y}_opp_*_c``) - ``typopp_{x}_{rate}`` the round-start table's in-fight families, at the block (Sam 11-18: the same groups, blocks for rounds), as live showed them - for G in blk3_ / rnd_ / prevrd_ / fight_: G d_ A - B of every rate; G lr_ log(A / B) of the per-minute volumes (features.final's LR_EPS) G vs_typ_ each fighter's rate less his typical (rnd_: this round's, features.final's round-start up_*_c; prevrd_: the round before's; fight_: his career's, hist_*_c); G vs_opp_ less what the opponent typically allows (features.final's MIRROR) - blk3_ has no typicals mom_ momentum (inplay's MOMENTUM rates): this round so far less the rounds before it (a break row: the round before less the rounds before that); 0 with nothing before; mom_d_ A - B, mom_lr_ the log ratio (per minute) lines (``lines``: the round model, outcomes.live_round_model): rnd_lines_p / _10_8_a / _10_8_b the judges' call on the round so far; prevrd_ the same on the round before + prevrd_kd_round_a / _b; fight_rounds_won_exp_a / _b and fight_lines_margin_a / _b / _d over the rounds before (each as live showed it by the next bell, the last one by the moment) fight_kd_a / _b / _d (knockdowns so far), fight_minutes, fight_pace_vs_exp (the pace less the two typicals' mean); the lines' A / B / A - B of each call (as features.final's prev_ / sofar_ pairs) time_ round, block (-2 / -1 a break), seconds fought in the round (a break row: 0) and left in it, the fight's seconds, rounds left, scheduled feed_ the block's readings, a blank round block (no reading came while it ran; a break block never), the round's blank blocks so farand apart from them (``RULE``, never in ``GROUPS``): px_ each market's price / bid / ask at the block's end (and on draw 0 Polymarket's): the RULE's, NEVER a model input - the simulated ones are built from the outcome (models.block_price_simulator's GUARD)the keys: draw, bout_id, round, block, brk (= round - 1: features.final's round-start row, the pre-fightfeatures, joins on bout_id + brk at the model), source, date, event_id
InroundRows read (the blocks, the round-start typicals, the fights, the round model; ``prefight``: the round-start table's pre-fight groups) / rows (one draw or several) / join_prefight (the pre-fight groups onto rows: hist_ prof_ x_ book_ mkt_ up_ and features.final's fight_ as event_)InroundLabelsTable features.inround_labels: features.block_labels' answers on every block of the gridGUARD: draws 1-5 are simulated from the official totals and the ending: train on them, judge on draw 0.
Classes
InroundLabelsTable
Bases: BlockLabelsTable
features.inround_labels: features.block_labels’ answers (what happened after each block’s end: a finish this
round / later, by KO / submission, the distance, A won, the seconds left) on every block of features.inround_blocks’
grid (the same for every draw: the fight’s own result) - built and updated on that grid, not fight_blocks’.
build
build(db: DBClient, base: Base | None = None) -> dict[str, int]update
update(db: DBClient, since: Any, base: Base | None = None) -> dict[str, int]InroundRows
The reads (read) and the rows (rows): module doc.
join_prefight
join_prefight(X: pd.DataFrame) -> pd.DataFrameX (rows) with the round-start table’s pre-fight groups of each row’s round (bout_id + brk).
read
read(db: DBClient, prefight: bool = False) -> InroundRowsrows
rows(draws: list[int] | None = None) -> pd.DataFrameThe rows of draws (all: None), one draw at a time (float32).
Functions
official_rounds
official_rounds(base: Base) -> pd.DataFrameThe official round counts (ufc.rounds), one row per fight and round: bout_id, round, A’s a_* and B’s b_* (A = the fight’s fighter_a).
rate_names
rate_names() -> list[str]fighter_stats.rates’ names (each fighter’s 135).
rows
rows(blocks: pd.DataFrame, typicals: pd.DataFrame, bouts: pd.DataFrame, lines: Any = None, official: pd.DataFrame | None = None) -> pd.DataFrameThe rows (module doc) of blocks (features.inround_blocks’ rows of one draw or more); lines the round model
(None: no lines columns); official the official round counts (bout_id, round, a_* / b_*: the fills of the rounds
fought - None: the typicals’ shares).