Skip to content

betting_combat.features.block_labels

block_labels — features.block_labels: what happened after each 30-second block (features.fight_blocks’s key), from the official result. Kept apart from the blocks as labels is from the round starts: a block row holds only what was known at its moment.

BlockLabelsTable NAME block_labels, KEY (bout_id, round, block), DATE date
y_ends_round the fight ends in this round, any way but going the distance (a KO / TKO, a submission, a DQ, a
no contest, a stoppage between rounds, a technical decision): the rounds market's answer (Kalshi's
'ends before round r + 1'); blank: the last round's way unknown. A break block's "this round" is
the round coming (the break before a round that never started - a stoppage between rounds: 1)
y_finish_round the fight ends in this round by KO / TKO or submission (after the block: the block exists,
so the fight was on)
y_ko_round ... by KO / TKO; y_sub_round ... by submission
y_finish_rest it ends by KO / TKO or submission, this round or later
y_ko_rest ... by KO / TKO; y_ko_dq_rest ... by KO / TKO or DQ (Kalshi's KO market counts a DQ);
y_sub_rest ... by submission
y_distance it goes the distance: it reached the last scheduled round's horn (a decision, a draw, a result
overturned or made a no contest later) and no KO / submission / DQ came at it; blank: the way unknown
y_end_fight_s the fight's official end, seconds into the fight; y_secs_left that less the block's END (its
moment; a break block: its round's bell)
y_a_win A won (blank: a draw / no contest)

Classes

BlockLabelsTable

Bases: FeatureTable

features.block_labels: one row per block, what happened after it (module doc).

build

build(db: DBClient, base: Base | None = None) -> dict[str, int]

compute

compute(base: Base) -> pd.DataFrame

update

update(db: DBClient, since: Any, base: Base | None = None) -> dict[str, int]

write

write(db: DBClient, rows: pd.DataFrame) -> dict[str, int]