Design · November 27, 2026 · 10 min read

Publishing Your Model's Losses

The prediction product's moat is not the model. It is the public track record: a resolver that grades every pick on a schedule, a dashboard that refuses to render small samples, and a confidence clamp we defend in the open.

Bradley Jackson
Bradley Jackson
Founder & Principal Engineer

The Dashboard That Shows My Model Losing

My UFC prediction model is wrong about one fight in three. The held-out backtest for the current winner model sits at 65.8% across 393 bouts it never trained on, and the page that broadcasts that number, along with every miss behind it, is the page I trust most on the whole site.

That is not a resigned admission. It is the product strategy. The prediction feature on UltimateFightingStats is a paid tier, and what separates it from every "lock of the week" account is not the model architecture. It is a public track record that grades itself, refuses to flatter itself, and documents its own most attackable decision. The dashboard that shows losses is the one people believe about wins.

This post walks through how that page is built, decision by decision, because almost none of it is machine learning. It is design: what to render, what to refuse to render, and what to say about the numbers.

The model grades itself on a clock

The foundation is a scheduled Lambda called the prediction resolver. Every six hours, on an EventBridge schedule, it looks for any prediction row where resolved_at IS NULL and the underlying fight now has a winner, joins the prediction to the actual result, and fills in the actual_* and correct_* columns: actual winner, actual method, actual round, and a boolean grade for each dimension of the pick.

The handler's own docstring says why it exists: it "powers the public accuracy dashboard." There is no step where a human reviews the grades, and no step where anyone decides whether this was a good week to update the page. The model gets graded on a clock, not when marketing asks. If the resolver fails, it posts to Slack and I go fix it; the one thing it never does is quietly skip a bad event.

If grading is a manual process, every ungraded week is a decision someone made, and readers are right to wonder why. When grading is a cron job, the track record is a fact of the infrastructure. The page's header copy makes the promise explicit: every public pick is graded against the real result, wins and misses, no retroactive edits.

Refusing to render a percentage

The first thing the accuracy page does with its live data is decline to show some of it.

There is a constant in the page component called MIN_LIVE_TILE, set to 10, and a helper that renders a live accuracy tile only when at least that many bouts have been graded. Below the threshold it renders a dash instead. The comment beside it explains the reasoning in one line: a percentage below that floor is not meaningful, "so a 0/3 doesn't read as a real 0.0% skill number."

An 0-for-3 start is noise. But render it as "0.0%" in a big bold tile and it reads as measurement, because percentages carry an authority raw counts do not. The same failure happens in the flattering direction: a 3-for-3 start rendered as "100.0%" is a lie about skill that happens to be arithmetically true. Refusing to format small samples as percentages is a design decision, not a statistics decision. The data is there; the page declines to dress it up as a conclusion.

One level up, a second constant, SMALL_SAMPLE_THRESHOLD at 100, controls a banner that stays on the page until a real body of live results exists. It tells the reader plainly that a handful of events can swing the numbers hard in either direction, and that the held-out backtest is the more reliable estimate of skill until a few hundred bouts are in the books. The page even checks whether the current model version has any graded bouts yet, and if the whole live record belongs to earlier versions, it says exactly that, rather than letting the new model wear an old record.

Backtest and live are different truths

The page shows two scoreboards and goes out of its way to keep them from touching.

The backtest numbers are not queried from the database at render time. They live in a source file, model-benchmarks.ts, as constants: release artifacts published when a model version is promoted. The provenance comment above them records that the figures were verified to reproduce the deployed model's recorded backtest bit for bit, down to six decimal places (accuracy 0.657761, calibration error 0.022921), measured on a held-out window of fights from October 2025 through June 2026. The comment even shows the reconciliation arithmetic: 170 bouts with betting lines at 71.5% plus 223 bouts without lines at 61.4% works out to the overall 65.8%.

The live record is the opposite: nothing but resolver output, one row per graded bout.

And there is a third category the page could have blended into the live record and did not. Before the live pipeline existed, I ran the current model over past 2026 bouts as a historical backfill. Those predictions were made after the fights happened. The page splits them out by provenance and presents them under their own heading as a retrospective re-score, with copy stating they are kept out of the live record because they show how the model reads recent history, not its pre-fight track record.

Conflating those three things, backtest, retrospective, and live, is the standard move in prediction marketing, because the blend always looks better than the live column alone. Splitting them is more work and produces worse-looking numbers. It is also the entire reason the page is worth believing.

Honesty is mostly boring plumbing

My favorite part of this page is a data-fetching function nobody will ever screenshot.

The live record needs every resolved prediction, and PostgREST caps a single response at 1,000 rows by default. A naive query would work perfectly today and then silently truncate once the table grows past the cap, and the dashboard would keep rendering confident percentages over an arbitrary subset of history. So the loader pages through the full set with a stable sort order, using the fight id as a tiebreaker so pagination cannot skip or double-count rows. If a page of the fetch fails partway through, it returns what it has, on the logic written in the comment: partial data beats a false empty state.

There is a similar dedupe step: the resolver grades one row per fight per model version, and the same bout can be predicted by two model builds, so public stats keep only the most recent prediction per fight.

None of this is interesting engineering. That is the point. The dashboard's honesty rests on its dullest code, because "we show every result" is only true if the fetch actually returns every result. A truncated dataset does not look like a bug; it looks like a track record.

The clamp, head-on

Now the part a skeptical reader would go after first, so I will go after it first.

In the inference handler that writes predictions, there is this line:

TypeScript
const clampDisplayConfidence = (c: number): number => Math.max(0.52, Math.min(0.82, c));

The site never displays a win confidence outside 52% to 82%. If the model outputs 91% for a fighter, the card says 82%. A shared web module defines the same band as DISPLAY_CONFIDENCE_MIN and DISPLAY_CONFIDENCE_MAX, calls it the honest display band, and notes it is the single source of truth for the displayed win percentage across the site, mirrored by the email alerts pipeline.

Stated plainly, the criticism writes itself: you built a whole page about publishing your losses, and then you cap the display so the model's most confident calls, the ones where overconfidence would be most embarrassing, never appear at full strength. Is that calibration or concealment?

Here is the defense, and it hangs on one architectural fact: the clamp is display-only. The raw calibrated probability is what gets stored in the predictions table, the resolver grades that raw number, and the public calibration table on the accuracy page buckets the raw winner-side confidence, not the clamped one. If the model were overconfident in the tails, the calibration table would print it: a row saying "we said 88%, they won 71% of the time" would sit right there on the page. The clamp changes what a bout card claims before the fight. It cannot touch how the model is scored after it.

That makes the clamp a claims policy rather than a data edit. The comment in the display module states the intent: the UI shows a clamped confidence "so the UI never over-claims beyond what the model is calibrated to support." The overall calibration error is 2.3%, but that is an average; the extreme tails are where samples are thinnest and calibration is least proven, so the interface declines to make claims out there.

Two concessions, because owning a decision means owning its costs. First, the floor is the weaker end of the argument: a raw 50.5%, a coin flip, renders as 52%, a small overstatement in the confident direction, and I find that harder to defend than the ceiling. Second, the clamp creates a visible seam. A reader can find a calibration bucket saying "we said 87%" for picks whose cards never showed more than 82%, and the explanation has to be exactly the one in this section. If we shipped the clamp without publishing raw calibration alongside it, it would be precisely the whitewash critics would suspect.

Comments as copy governance

The last mechanism is my favorite, because it costs nothing and prevents the most common failure: marketing drift.

On bouts that had betting lines, the model went 71.5% against the vig-free market favorite's 69.7%, with lower log-loss. That is the kind of number that becomes "our AI beats Vegas" in a landing-page headline within a week. The note in model-benchmarks.ts, sitting directly above those constants, forbids it: a 1.8 point gap on 170 bouts is within noise, so "keep public copy at 'holds its own with / as sharp as the market', not a confident 'beats it'." It goes further: when the model disagrees with the market it is roughly a coin flip, so a model edge is "a talking point, not a bet signal."

The same file kneecaps another tempting number. The method model scores 48.2% on a three-way call, which sounds respectable until you know that decisions are about half of all fights, so always guessing "decision" already scores around 50%. The comment says, in capital letters, do not tout this number. And the accuracy page obeys, describing method and round as much harder calls rather than dressing them up.

Putting the copy rules next to the constants they govern means anyone who touches the numbers reads the sentence that constrains them. The code review that updates a benchmark is the same review that would catch the overclaim. That is governance with no process attached.

Losses are the trust product

Every mechanism above makes some number on the page smaller, later, or hedged. Percentages refuse to render. Provenance splits keep flattering blends apart. The clamp caps the exciting confidences. The comments ban the best headlines.

And the page is stronger for all of it, because the thing being sold is not a percentage. It is the credibility of whatever percentage eventually stands. A model that holds its own with the market is genuinely useful, but only if the reader believes the scoreboard, and the reader believes the scoreboard because it visibly does not flatter its owner: the misses are graded by a cron job, the small samples are refused, and the one decision that looks like concealment is documented and graded in the open.

If you are building anything that makes predictions, the transferable lesson is that the trust surface is a product of its own. Grade yourself on a clock. Split your provenance. Refuse to render noise as skill. And when you make a display decision someone could attack, write down the defense before they ask.

trust · honest ux · machine learning · calibration · data visualization · conversion