Skip to content

betting_combat.features.profile

profile — who each fighter is on the day of each of his fights (Sam 2026-11-12): features.profile, one row per fighter per fight (every official fight: the UFC, the Contender Series, Road to UFC; and every fight to come), keyed fighter_id + bout_id, dated by the fight’s day, holding only what was known before that day. It reads the base and fighter_stats and makes its own inferences; his history (career rates, form, layoffs) is the model rows’ (built with them), not here.

body height, reach, ape index (reach less height), stance; height and reach against the
division (the mean over its fights before the day)
age his age, years as a pro and in the UFC on the day; his age at his first pro fight and
at his UFC debut, his years as a pro at the debut (``entry``: a fight before his UFC
debut takes its own day as the debut, nothing later being known)
origin country, region (``REGIONS``), the Caucasus (UFC.com's birthplace); at home (the card
is in his country), in his region
entry how he came in: the Contender Series, TUF, Road to UFC, straight in
pre-UFC his pro record outside before his entry: fights, wins / losses / draws, wins and
losses by KO / submission / decision, first-round finishes, title fights and wins,
fights and wins in a major promotion, the streak he came in on, unbeaten, fights a
year; shares pulled to the league's by ``SHARE_K`` fights (win, finish, KO /
submission / decision of the wins, finished of the losses)
pedigree his base (``BASES``: one of five) and BJJ / wrestling / striking / judo level
(``LEVELS``; 0: not one of his disciplines). A told BJJ belt is today's: one earned
during his career shows on his fights before it (stepping belts back by time over-
corrected: black belts 33% → 7% of fights from 2015). The levels add nothing yet
(+0.02% to the price with the rest of the profile, 11-12); if a model keeps them,
back-date them first
style as of the day (``STYLE``): volume, power, pressure, takedowns, control, submissions,
standing, finisher, each his own over his fights before the day pulled to his
division's times his base's by ``k`` (fight-to-fight spread over fighter-to-fighter,
each year); the one he leans to most of striker / wrestler / grappler (``LEANS``)

THE INFERENCE. A missing value is inferred from what was known about him, from the fighters who have it and came before him (before his year; before the first year with enough of them — NEAR_POOL a donor’s pool, FIT_POOL / LEVEL_POOL a model’s, MIN_POOL the rest — that year’s: as of, like lines.filled), and DRAWN with his own fixed number (_u, one per fighter per piece): a draw, not the mean, so an inferred value looks like a told one (the presence rule); a fixed number, so it moves only when what is known about him does. body reach: his height plus the ape index of one of the NEAR fighters nearest him in height and division (height: his reach less one’s, or one’s nearest in division); stance: one of his era’s birth his entry less the age at entry of one of the nearest in pre-UFC record and year origin where he fought before: each promotion’s fighters’ origins (each of his fights weighing one), else his first card’s country’s fighters’ pre-UFC Cito’s fight-by-fight list; else his UFC.com record less his fights since (wins by method; page_pre); what only a list tells (first-round finishes, losses by method, titles, majors, the streak, his first pro fight) from one of the nearest listed fighters in record and year (UFC.com’s first-round finishes are not his pre-UFC ones: 0.9 a fighter against a list’s 4.3, which told the source apart); no record at all, all of it from one of the nearest in year, age and division pedigree the base: a logistic model of the told bases on everything above and his style so far (pulled to his division’s), fitted on the told fighters’ fights before the year, its chances drawn (classify); each discipline his or not the same way (his base’s always his), then its level (on LEVEL_X: few levels are told) CHECKED 11-12 (one fighter in five’s told value hidden, rebuilt; rows from 2015): reach 2.2 in off (a blind draw 4.9), origin’s region right 43% (a blind draw 24%), the page’s pre-UFC fights 1.1 off (7.3), the streak 2.2 (3.8), first-round finishes 2.1 (3.6); the base right 35% against a blind draw’s 35% and age at debut no better than one: what is known barely tells them, so the draw keeps the told shares (bases told 44 / 26 / 21 / 6 / 4% against drawn 40 / 27 / 24 / 6 / 3%).

THE PRESENCE RULE (2026-11-07; 11-11): which fighters have a page, a list or a told pedigree is decided today and leans to those who lasted, so no value may tell which: flag_* say what was inferred, for reading, never inputs (the assessment drops them). Checked 11-12 on the fights from 2015 against the price: the flags themselves would add up to 3.3% (the told pedigree), what the values tell of them adds nothing (at most +0.04% worse, every group); rows before a day are the same built on the base stopped there (2016-06, 2019-06, 2024-03: every column).

Classes

ProfileTable

Bases: FeatureTable

features.profile: one row per fighter per fight (official and to come).

compute

compute(base: Base) -> pd.DataFrame

Functions

classify

classify(X: pd.DataFrame, y: pd.Series, need: pd.Series, when: pd.Series, who: pd.Series, what: str, least: int | None = None) -> pd.Series

A label drawn for each need row: a logistic model of the labelled rows’ y on X fitted on those dated before the row’s year (each fighter weighing one; before the first year with least (FIT_POOL) labelled fighters, that year’s), its chances drawn by his _u; nothing labelled, nothing drawn (blank).

draw

draw(prob: np.ndarray, u: np.ndarray) -> np.ndarray

The class each row’s u falls in, its chances prob (rows) laid end to end.

near

near(df: pd.DataFrame, need: pd.Series, have: pd.Series, match: list[str], take: list[str], what: str, by: str | None = None) -> pd.DataFrame

take for each need row of df (its year his) from one of the NEAR have rows nearest it on match (standardised over the pool, a blank its median), of the same by, from before his year (_start within the by, NEAR_POOL) — which one by his _u.

page_pre

page_pre(base: Base, S: pd.DataFrame, W: pd.DataFrame) -> pd.DataFrame

His record before the UFC from his UFC.com page (one row a fighter with a page record): the page’s pro record less his official fights before the page was read and his outside fights since his debut (PRE). A fact about before his debut read off today’s page: a build on a base cut at a day reads it off the same page (its check passes the whole base’s).