betting_combat.rounds.backtest.meta_rows
The meta model’s training rows (models.meta) from the three strategies’ backtests on the
primary’s chances: the joint execution’s (rounds, distance: joint.run) and the ‘no KO’ one’s
(noko.run), each at its strategy row’s settings, their ledgers and flags through the labeler
(labeler.build), the weights across the strategies (labeler.by_strategy). Port of the
research run (data/ufc/cito/assess/meta2/n02_rows.py): the same rows, label for label.
probs per (fight_id, round_idx): the primary's chances per engine (``primary_*``, ``lgbm_*``, ``bayes_*``: this round's five outcomes and the fight from here) - the purged out-of-sample ones for the training cardskeys the dataset's rows: event_id, event_date and the outcomes (y_finish_round, y_decision, y_method)Classes
Strategies
Each strategy’s backtest settings: joint strategy -> its services.rounds_refit. Chosen (rounds, distance); noko: the ‘no KO’ rule and execution (None: left out).
Functions
fight_times
fight_times(fights: pd.DataFrame, bouts: pd.DataFrame, keys: pd.DataFrame) -> pd.DataFramePer (fight_id, round_idx): the break’s bell, the end of the round after it (or the fight’s end if earlier) and the fight’s end (the market’s bells; a missing bell from break 1: rounds 300 s, breaks 60 s; a finish at its round’s start + its seconds; a decision at the last round’s end).
noko_rows
noko_rows(probs: pd.DataFrame, keys: pd.DataFrame, fights: pd.DataFrame, minutes: pd.DataFrame) -> pd.DataFramenoko.break_rows for every priced row whose market bell fired: the KO market’s quote
at the fire (the last minute bar ending at or before it: mid, ask - bid).
rows
rows(probs: pd.DataFrame, keys: pd.DataFrame, fights: pd.DataFrame, minutes: pd.DataFrame, grid: pd.DataFrame, bouts: pd.DataFrame, finish_clock: FinishClock, method_clock: MethodClock | None, strategies: Strategies, noko_breaks: pd.DataFrame | None = None) -> pd.DataFrameEvery strategy’s labelled rows with their weights (labeler.by_strategy).
noko_breaks: the ‘no KO’ backtest’s break rows (default: noko_rows from the minutes).