Skip to content

feat: rate recent form over fifty games - #50

Merged
sunerpy merged 1 commit into
mainfrom
feat/recent-form-50
Nov 14, 2026
Merged

sunerpy merged 1 commit into
mainfrom
feat/recent-form-50

Conversation

@sunerpy

@sunerpy sunerpy commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

The recent strength (近期战力) now reads a player's newest fifty games instead of twenty, with each older game weighing 0.97 of the next (0.93 before), and its curve is refit on a new sample read the same way.

What changes

  • analysis::RECENT_GAMES 20 → 50 and rating::RECENCY 0.93 → 0.97: a full window weighs as about 42 games (17 before). The trend still sets the newest five against the next fifteen (TREND_BEFORE).
  • A record reads the shard server's history in pages of fifty: (0, 50), then (50, 50) when the window is not filled, 100 games at most as before. While the server is busy it reads fifty places one game a request (the owner's choice; callouts can come later at the evening peak). The client-list fallback asks for the window plus ten.
  • Champ select that ends before the automatic callout went out now logs champ select ended without the automatic callout, so a peak-hour miss can be seen.
  • Calibration: fixtures/sgp/players.json is a new sample (one Tencent shard, 2026-11-14, 40 players met in Hextech ARAM and 30 on the Rift, each read as a record reads them and kept to the fiftieth counted game, ten at least). Every measured constant in rating.rs was refit from it with winer-batch/strength/refit50.py, whose --check run reproduces the old constants on the old fixture first: priors 25/10 → 17/7, lite prior 1.4 → 1.16, the players' spread, the median spreads, the steady/wild thresholds, the position and role offsets and the per-minute averages.
  • The History header and the Overview draw the whole window: ResultStrip has a dense variant (4 px ticks, 2 px apart, 298 px for fifty), checked in the demo at 1240 and 1000 px.
  • Strings, the demo and the docs say fifty; what they say about the client's own twenty-game list is unchanged.

Not changed

  • Premade inference reads whole records as before; longer records only add evidence, and two games together with one among either player's newest ten is still required.
  • Anonymous champ-select seats stay unrated.

Checks

scripts/evidence.sh green on the final tree (local stamp 20261114T152002Z, tree 4b915f0f0ca7): lcu 12, winer 52, winer-core 346 tests; shared 7, plugin 72, frontend 169; clippy, fmt, the Windows check, lint, typecheck and format.

BEGIN_COMMIT_OVERRIDE
feat: 近期战力改为参考最近 50 场对局(原 20 场),越早的对局权重降得更慢,并按新抽样重新标定评分 (#50)
END_COMMIT_OVERRIDE

The recent strength reads a player's newest fifty games instead of twenty,
each older game weighing 0.97 of the next (0.93 before). A record pages the
shard server fifty games at a time, a hundred at most, and while the server
is busy reads fifty places one game a request.

The strength curve is refit on a new sample read the same way (one Tencent
shard, 2026-11-14, 70 players up to their fiftieth counted game), with every
measured constant in rating.rs refit from it.

The History header and the Overview draw the whole window with a dense
result strip, and the strings, the demo and the docs say fifty.
@sunerpy
sunerpy merged commit aeddeab into main Nov 14, 2026
6 checks passed
@sunerpy
sunerpy deleted the feat/recent-form-50 branch November 14, 2026 17:36
@winer-release winer-release Bot mentioned this pull request Nov 14, 2026
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.

1 participant