Repository navigation
feat: rate recent form over fifty games - #50
Merged
Merged
Conversation
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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_GAMES20 → 50 andrating::RECENCY0.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).(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 ended without the automatic callout, so a peak-hour miss can be seen.fixtures/sgp/players.jsonis 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 inrating.rswas refit from it withwiner-batch/strength/refit50.py, whose--checkrun 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.ResultStriphas adensevariant (4 px ticks, 2 px apart, 298 px for fifty), checked in the demo at 1240 and 1000 px.Not changed
Checks
scripts/evidence.shgreen 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