Skip to content

Replace raw cosine similarity with percentile rank for guess scores#39

Merged
FlorentPoinsaut merged 3 commits intomainfrom
copilot/fix-percentage-score-bug
Mar 25, 2026
Merged

Replace raw cosine similarity with percentile rank for guess scores#39
FlorentPoinsaut merged 3 commits intomainfrom
copilot/fix-percentage-score-bug

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

  • bot/bot.py: change round(score * 100)math.floor(score * 100) in all 3 places (guess, hint, status commands)
  • overlay/static/index.html: change Math.round(score * 100)Math.floor(score * 100) in pct()
  • tests/test_commands.py: replaced test_guess_percentage_uses_rounding_not_truncation with test_guess_percentage_uses_floor_not_round (0.998 → 99%, not 100%) and test_guess_percentage_uses_floor_truncation (0.475 → 47%)
  • All 224 tests pass
  • Code review and CodeQL check passed (0 alerts)
Original prompt

This section details on the original issue you should resolve

<issue_title>[BUG] Percentage seems to be the score * 100 and not a real percentage</issue_title>
<issue_description>Image</issue_description>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

…ore percentage

Co-authored-by: FlorentPoinsaut <1256948+FlorentPoinsaut@users.noreply.github.com>
Agent-Logs-Url: https://github.com/solution-libre/streamantix/sessions/95687f34-0e82-4965-aba7-d33678bda4bf
Copilot AI changed the title [WIP] Fix percentage score calculation to reflect real percentage Replace raw cosine similarity with percentile rank for guess scores Mar 24, 2026
Copilot AI requested a review from FlorentPoinsaut March 24, 2026 21:46
@FlorentPoinsaut FlorentPoinsaut marked this pull request as ready for review March 24, 2026 21:48
…splay as 100%

Co-authored-by: FlorentPoinsaut <1256948+FlorentPoinsaut@users.noreply.github.com>
Agent-Logs-Url: https://github.com/solution-libre/streamantix/sessions/6134cfc2-e503-43d8-a2e8-18e0568e8d60
@FlorentPoinsaut FlorentPoinsaut merged commit d27fbd8 into main Mar 25, 2026
2 checks passed
@FlorentPoinsaut FlorentPoinsaut deleted the copilot/fix-percentage-score-bug branch March 25, 2026 08:44
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.

[BUG] Percentage seems to be the score * 100 and not a real percentage

2 participants