Skip to content

leaderboard: show each model's rank number and rank shift on the reorder plot - #29

Merged
bamdadd merged 1 commit into
bamdadd:mainfrom
dchaudhari7177:feat/reorder-rank-numerals
Jul 22, 2026
Merged

leaderboard: show each model's rank number and rank shift on the reorder plot#29
bamdadd merged 1 commit into
bamdadd:mainfrom
dchaudhari7177:feat/reorder-rank-numerals

Conversation

@dchaudhari7177

Copy link
Copy Markdown
Contributor

Closes #8.

The hijack-vs-leakage bump chart drew lines and per-node rates but not the explicit rank position, so a reader had to infer ranks from vertical order.

Change (_svg_reorder):

  • Render each model's integer rank at both endpoints (a white numeral on the node; nodes enlarged r=6→9 to fit).
  • Mark movers with an up/down glyph + the rank delta (▲2 / ▼1), reusing the same moved test that drives the crossing count. A null (Kendall τ = 1) shows no delta.

Tests (tests/test_leaderboard.py): a 2-model reorder renders the rank numerals at both endpoints and both movement glyphs with the delta; a ranks-agree case renders numerals but no glyph.

ruff check/format, mypy, and pytest all green.

…der plot

The bump chart drew connecting lines and per-node rates but not the
explicit rank position, so a reader had to infer ranks from vertical
order. Render each model's integer rank at both the hijack and leakage
endpoints (white numeral on the node), and mark movers with an up/down
glyph plus the rank delta (reusing the same moved test as the crossing
count). A null (Kendall tau = 1) shows no delta.

Closes bamdadd#8
@bamdadd
bamdadd merged commit 44e0f3b into bamdadd:main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show each model's rank number and rank shift on the reorder plot

3 participants