Skip to content

betting_combat.rounds.models.bayes_softmax

The primary’s Bayes engine (2026-10-26): a Bayesian multinomial logistic correction of the start (the Bayes clock x the market x the KO share), for the same five outcomes of the round as LightGBM (A by KO, A by submission, B by KO, B by submission, no finish).

logits log P_start + Z W + b, with ‘no finish’ the reference (zero in its column); Z the prepared inputs (prep.InputPrep) priors W = w_raw x tau[the input’s group], w_raw normal(0, 1): each input group’s shrinkage width tau is learned (half-normal 0.5); b normal(0, 1) fit NUTS (NumPyro): chains x warmup + samples draws, target acceptance 0.9, tree depth 8, from the prior’s median; seeded, so the same inputs and library versions give the same draws predict the five probabilities averaged over draws posterior draws spread evenly across the chains (NumPy only: no JAX at prediction time)

Chosen out of sample in the layer-1 research phase on model types (2026-10-26): one standard version of each engine on the primary’s rows, inputs, start and purged 10-fold; this engine alone tied LightGBM (0.654 log loss) and the two averaged beat both (models.primary). The research’s model (data/ufc/cito/assess/a15_engines.py, bayes; a16_one_each.py), reproduced exactly.

Classes

BayesSoftmax

fit

fit(Z: np.ndarray, y: np.ndarray, log_start: np.ndarray, groups: np.ndarray) -> BayesSoftmax

Z: the prepared inputs (rows x inputs); y: the outcome codes 0..4; log_start: the start’s log-probabilities (rows x 5); groups: each input’s group (0..G-1).

predict

predict(Z: np.ndarray, log_start: np.ndarray) -> np.ndarray

The five probabilities (rows x 5), averaged over the kept posterior draws.