You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Ranking program: organizer provides the code for computation between leaderboard columns #406
Competition organizers can define their own scoring and ingestion programs in a flexible way with Python code.
But, in Codalab v15, the computation of the final ranking when there are several sub-scores is constrained between few possibilities (average rank, maximum...).
I think it is crucial to be able to use any function to compute this final ranking, so organizers should be able to provide a kind of "meta scoring program".
Much more flexible way to handle computation columns. This should be a fine solution for a much more advanced "computational column" type system. Organizers could do any kind of computation they'd like! This should be executed even if children have failed.
Currently, there is one column(primary column) that is used to decide ranking on the leaderboard. We should add ways to compute leaderboard ranking across all columns on the leaderboard, and have a way to exclude to certain columns from the ranking calculation.
Make computed columns.
Could automatically be generated by columns with the same key
- Pro: simple and programmatic
- Cons: Would have less control
Could require each column to have a unique key and then group the columns later to be calculated OR
- Could instead select columns by key + task
- Pro: More control in selection
- Con: tasks more work by admins
Something similar to this may have been implemented to support AutoDL (multiple tasks) in v2? There is a way to do weighted sum scoring across children tasks without the need for a master scoring program, the master phase defines this behavior. Zhen and Jimmy implemented this for AutoDL in Jan/Feb, I believe.
changed the title [-][Suggestion] Flexible ranking computation ("master scoring program")[/-][+][Feature] Meta scoring program: organizer provides the code for computation between leaderboard columns[/+]on Oct 11, 2022
Something similar to this may have been implemented to support AutoDL (multiple tasks) in v2? There is a way to do weighted sum scoring across children tasks without the need for a master scoring program, the master phase defines this behavior. Zhen and Jimmy implemented this for AutoDL in Jan/Feb, I believe.
In this version, we have a master scoring program and then the phases are used like tasks in Codabench. Indeed we had average rank here.
But I don't think it is useful to look here; average rank is implemented in vanilla CodaLab (v1.6). It was called using the Avg operation (which is not a clear naming because Avg should be the simple score average), like in this example of competition.yaml file for a CodaLab competition with average rank:
rk.score is the simple average, which calls np.mean. rk.borda is the average rank. The naming is this way because it is the names of these functions in the field of Social Choice Theory.
Also, just for the record, here are schemas to understand the difference between "average" and "average rank", and why it changes how the computation column should be computed in Codabench:
Here you specify precisely which columns are used in the computation. Just, instead of Avg, we'd like to have more possibility.
Maybe having a meta-scoring program, as proposed at first by this issue, is too much, and we just want to allow ranking functions of the Ranky package.
It is a pity average ranking is not available in Codabench. This is a very useful feature in Codalab. It would be great if you consider including it in the future. Thanks
It is a pity average ranking is not available in Codabench. This is a very useful feature in Codalab. It would be great if you consider including it in the future. Thanks
changed the title [-][Feature] Meta scoring program: organizer provides the code for computation between leaderboard columns[/-][+][Feature] Ranking program: organizer provides the code for computation between leaderboard columns[/+]on Apr 29, 2025
Hello @VenkteshV, it is still not possible right now on Codabench, but this feature is planned for future updates. I'll start working on it later this month.
Activity
ckcollab commentedon May 5, 2020
Something similar to this may have been implemented to support AutoDL (multiple tasks) in v2? There is a way to do weighted sum scoring across children tasks without the need for a master scoring program, the master phase defines this behavior. Zhen and Jimmy implemented this for AutoDL in Jan/Feb, I believe.
[-][Suggestion] Flexible ranking computation[/-][+][Suggestion] Flexible ranking computation ("master scoring program")[/+][-][Suggestion] Flexible ranking computation ("master scoring program")[/-][+][Feature] Meta scoring program: organizer provides the code for computation between leaderboard columns[/+]ihsaan-ullah commentedon Jun 22, 2023
@Didayolo do you know something about this?
Didayolo commentedon Jun 22, 2023
AutoDL version of CodaLab is the 1.8 version (I think the Github branch is named
google-cloudor something like this). It corresponds to this instance of CodaLab: https://autodl.lri.fr/In this version, we have a master scoring program and then the phases are used like tasks in Codabench. Indeed we had average rank here.
But I don't think it is useful to look here; average rank is implemented in vanilla CodaLab (v1.6). It was called using the
Avgoperation (which is not a clear naming becauseAvgshould be the simple score average), like in this example ofcompetition.yamlfile for a CodaLab competition with average rank:The computation is there in the code:
https://github.com/codalab/codalab-competitions/blob/68036d9b06272ce23572d121c85b3c00ee49a21a/codalab/apps/web/models.py#L1251
In Codabench, here is the yaml syntax:
But this time,
Avgis for average; average rank is not implemented. We also can also edit this using the editor.Last point, implementation of ranking functions can be found in this library:
rk.scoreis the simple average, which callsnp.mean.rk.bordais the average rank. The naming is this way because it is the names of these functions in the field of Social Choice Theory.Didayolo commentedon Jun 22, 2023
Also, just for the record, here are schemas to understand the difference between "average" and "average rank", and why it changes how the computation column should be computed in Codabench:
https://docs.google.com/presentation/d/1_qg2AcBUeBtIlYGq754wMHMkAn3mzIT_JjlLAepjWZI/edit?usp=sharing
ihsaan-ullah commentedon Jun 22, 2023
Plan for this feature @Didayolo
Example with specified columns:
Example with columns containing a string (useful when new columns could be added later):
we can have two keys
column_ends_withandcolumn_starts_withLater on add more meta-scoring programs
Didayolo commentedon Jun 22, 2023
I think we should keep the interface we already have, which is mentioned above:
and the editor:
Here you specify precisely which columns are used in the computation. Just, instead of
Avg, we'd like to have more possibility.Maybe having a meta-scoring program, as proposed at first by this issue, is too much, and we just want to allow ranking functions of the Ranky package.
Didayolo commentedon Aug 21, 2023
There is also the question of the v1 unpacker (#368)
juliojj commentedon Feb 18, 2024
It is a pity average ranking is not available in Codabench. This is a very useful feature in Codalab. It would be great if you consider including it in the future. Thanks
Didayolo commentedon Feb 11, 2025
We are starting to work on this now
[-][Feature] Meta scoring program: organizer provides the code for computation between leaderboard columns[/-][+][Feature] Ranking program: organizer provides the code for computation between leaderboard columns[/+]Didayolo commentedon Apr 29, 2025
Let's first do a simple version of this - instead of going for the full flexible "ranking program".
The simple version is to add "average rank" as an option for "computation column" in the leaderboard. I'll have a look at this.
Relevant code:
codabench/src/apps/competitions/models.py
Line 748 in 5f167a7
codabench/src/apps/leaderboards/models.py
Line 34 in 5f167a7
VenkteshV commentedon Jan 18, 2026
Hi. Thank you for creating this issue for the feature. is there a way we can compute average rank now using ranks based on different scores in the leaderboard ? like this - https://github.com/codalab/codalab-competitions/wiki/Organizer_Leaderboard ?
Didayolo commentedon Feb 2, 2026
Hello @VenkteshV, it is still not possible right now on Codabench, but this feature is planned for future updates. I'll start working on it later this month.