betting_combat.rounds.features.breaks
Group 3b: the round stats at each break, as layer 1 v2 reads them (models.primary).
For the row at the start of round k+1 (round_idx k >= 1, the break after round k):
last_
each for the 22 stats of FIELDS and side a (A’s), b (B’s), d (A - B), s
(A + B), A the dataset’s slot (dataset.a_slot_of). A break is built only when every round up
to it has its line (one row per fight per round with both fighters).
History reads the official UFCStats round lines mapped to the live feed’s scale (LIVE_MAPS:
per stat the official -> live map that best predicted the live feed’s line on the live cards’
fighter-rounds — identity unless a ratio or a linear map beat it by 5 %); live reads the feed’s
lines at the break as they are. Research: data/ufc/cito/build/s04_adjust.py (the maps,
fitted 2026-10-25 on the 88 fighter-rounds of the UFC 332 and 2026-10-10 live timelines) and
s05_datasets.py (the features) — numbers identical (tests/parity/test_layer1_v2.py).
Classes
BreakStats
The break rows from fighter-round lines (fight_id, side ‘a’ | ‘b’, round, FIELDS).
features
features(lines: pd.DataFrame, last_round: pd.Series) -> pd.DataFrameOne row per fight per break k (1 <= k < the fight’s last round, last_round:
fight_id -> the last round fought; a fight missing from it: its last line’s round + 1,
every completed round’s break), with last_ / cum_ x a / b / d / s x FIELDS.
live
live(lines: pd.DataFrame) -> pd.DataFrameThe breaks so far from the live feed’s lines (fight_id, side, round, FIELDS) as they are: every completed round’s break.
official
official(raw: RawData) -> pd.DataFrameEvery fight’s breaks from the official round lines on the live scale (history).
Functions
to_live_scale
to_live_scale(lines: pd.DataFrame) -> pd.DataFrameOfficial fighter-round lines (FIELDS) mapped to the live feed’s scale (LIVE_MAPS).