Conversation
use sum instead of average for calculating score
scale score by 2 to represent the normalized version since h2h scores are recriprocal
and the baseline gets a 0
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThe pull request modifies the per-user score calculation in the coherence tournament leaderboard update command, changing from an average-based approach to a sum-based approach with a 2.0 multiplier, while keeping the baseline score and aggregation logic intact. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@scoring/management/commands/update_coherence_tournament_leaderboard.py`:
- Around line 188-191: The runtime TypeError comes from multiplying a Python
list by 2.0 in the expression np.sum(competitor_score_record[uid] * 2.0); update
the computation in the block that builds the leaderboard (referencing
competitor_score_record and uid) to either convert competitor_score_record[uid]
to a NumPy array before doing element-wise multiplication or, simpler, move the
scalar multiplication outside the sum (e.g., 2.0 *
np.sum(competitor_score_record[uid])) and keep the weight sum as
np.sum(competitor_weight_record[uid]); ensure np.sum receives a numeric sequence
or ndarray to avoid the TypeError.
🧹 Preview Environment Cleaned UpThe preview environment for this PR has been destroyed.
Cleanup triggered by PR close at 2026-02-06T21:09:53Z |
…board.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
use sum instead of average for calculating score
scale score by 2 to represent the normalized version since h2h scores are recriprocal
and the baseline gets a 0
Summary by CodeRabbit