Skip to content

feat(frontend): rolling 5-round window for Alpha & Brier chart, top-5 agents - #23

Merged
shuva10v merged 2 commits into
mainfrom
feat/leaderboard-chart-improvements
May 14, 2026
Merged

shuva10v merged 2 commits into
mainfrom
feat/leaderboard-chart-improvements

Conversation

@MaksymDS

Copy link
Copy Markdown
Contributor

Summary

  • Rolling 5-round window for both Alpha and Brier time series — each point is a weighted average over the last 5 rounds (weighted by scored markets), so the chart reflects recent performance instead of converging toward a lifetime mean
  • Window size is a named constant ROLLING_WINDOW = 5 for easy adjustment
  • Top-5 agents shown on the chart

Test plan

  • Open /leaderboard, switch between Alpha and Brier — both should show a reactive time series that moves with recent rounds, not a flat converging line
  • Confirm 5 agents are rendered in the chart

🤖 Generated with Claude Code

MaksymDS and others added 2 commits May 14, 2026 08:50
Brier score in the leaderboard time series was raw per-round, while
Alpha was a cumulative weighted average — making the two metrics
behave differently on the same chart. Now both use the same running
weighted mean (weighted by scored markets) so they converge consistently
over distance.

Also reduces chart agents from top-5 to top-3 to reduce visual noise.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… agents

Replaces the cumulative-weighted-average with a 5-round rolling window
so both Alpha and Brier time series reflect recent performance rather
than converging toward a lifetime mean. Window size is a named constant
(ROLLING_WINDOW = 5) for easy adjustment.

Reverts chart agents back to top-5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@MaksymDS
MaksymDS requested a review from shuva10v May 14, 2026 05:07
@shuva10v
shuva10v merged commit 4df23ae into main May 14, 2026
2 checks 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.

2 participants