You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(inference): use ratio (Nx) for diff tables; floor upper bound
Two follow-up tweaks to the per-interactivity throughput and AUC summary
tables introduced in 6db1e32:
1. Render multiplicative ratios (Nx) instead of percent-differences.
- Throughput "% advantage vs baseline" sub-table → "Ratio vs baseline",
cells now read "2.50×", "0.60×", etc; self-vs-self is "1.00×";
"∞" kept (other reachable, baseline not); "−∞" replaced with "0×"
using the same dark-red treatment for the symmetric case.
- AUC table: drop the redundant "% vs primary" column entirely (the
other three columns are already ratios), so columns are AUC + Ratio
vs primary + Ratio vs secondary + Ratio vs tertiary, all in Nx.
- New ratioColor() centered at 1.00× and log-symmetric: 3.00× → fully
green, 0.33× → fully red, interpolating linearly in log space (so
"2×" and "0.5×" land at matched saturations). WCAG-luminance text
color preserved.
2. Column upper bound is now floor(globalMax/10)*10 instead of ceil, for
both the throughput buckets and the AUC integration window. The last
bucket is therefore always one at least one config actually reaches.
pareto.test.ts: spec sanity check now compares aucUnderFrontier against
an independent fine-grid trapezoidal reference computed inline, instead
of hard-coding expected AUC magnitudes that bake in a specific upper
bound — the new floor(...) rule, or any future window change, no longer
requires touching the test.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
<h3className="text-base font-semibold">% advantage vs baseline</h3>
350
+
<h3className="text-base font-semibold">Ratio vs baseline</h3>
343
351
<InfoIcon
344
352
text={
345
-
'(other − baseline) / baseline × 100 at each bucket. "∞" means the baseline cannot reach that interactivity but the other config can; "−∞" the reverse; "—" means neither can. Cells clamp to ±200% for the color scale.'
353
+
'other / baseline at each bucket, rendered as Nx. "∞" means the baseline cannot reach that interactivity but the other config can; "0×" the reverse; "—" means neither can. Color scale is centered at 1.00× and log-symmetric, saturating at 3.00× (green) and 0.33× (red).'
0 commit comments