Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoring: exclude_from_ranking #3352

Merged
merged 6 commits into from
May 27, 2024
Merged

Conversation

chrisvanrun
Copy link
Contributor

@chrisvanrun chrisvanrun commented May 24, 2024

Part of the tiny pitch:

This PR adds an optional (default: false) exclude_from_ranking field in the extra results columns JSON definition. Setting it to true allows additional metrics to be shown on Challenge leaderboards while being ignored while calculating the rank.

The related test is a construction copy of test_calculate_ranks since I did not find it wise to extend that test with yet another factor. It would have pushed the 12 (2x3x2) to 24 which is over the top imho.

@jmsmkn
Copy link
Member

jmsmkn commented May 24, 2024

I would have thought that the template and view would need updating too as the rank will not be present for excluded fields, right?

@chrisvanrun
Copy link
Contributor Author

I would have thought that the template and view would need updating too as the rank will not be present for excluded fields, right?

I might have completely missed the fact that the leaderboard templating changed if the scoring method changed! I'll look into this after the weekend.

@chrisvanrun
Copy link
Contributor Author

Refactor the test(s) and have updated the leaderboard template to not decorate the excluded metrics:
image

@chrisvanrun chrisvanrun requested a review from jmsmkn May 26, 2024 09:50
@chrisvanrun chrisvanrun merged commit 61268b4 into main May 27, 2024
8 checks passed
@chrisvanrun chrisvanrun deleted the scoring-exclude_from_ranking branch May 27, 2024 11:37
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