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
(the competition is private, if you need the secret URL please ask me)
UPDATE:
This problem is linked to another problem: the score in the tab "Submissions" (either participant tab or admin tab) does not reflect perfectly the score in the leaderboard.
It seems that javascript standard for floats is not precise. The order is based on the scores that you can find in the "Submissions" tab, not the actual scores. The leaderboard reflect the true score.
So, it is ordered by primary column, but using a bad rounding.
I don't understand where the order comes from. It could be based on another score, or on the best score of the participant, maybe on the date... Maybe we should investigate the code directly.
I don't understand where the order comes from. It could be based on another score, or on the best score of the participant, maybe on the date... Maybe we should investigate the code directly.
When you load the leaderboard, the order seems correct. I think the order is changed and is buggy because of the reordering when you click the column
This problem is linked to another problem: the score in the tab "Submissions" (either participant tab or admin tab) does not reflect perfectly the score in the leaderboard.
It seems that javascript standard for floats is not precise. The order is based on the scores that you can find in the "Submissions" tab, not the actual scores. The leaderboard reflect the true score.
I have one that's new and I can make it its own issue:
While order above isn't my issue I see that computations aren't working right and options I specifically unset and saved persist when I go back into the editor:
Before:
After:
Cols in DB (wrong changes are being propagated to db):
Update:
Reuploaded the competition with leaderboard:
It works on fresh upload. This leads me to believe as we edit the leaderboard and add\remove columns, old data (whether deleted or not) is contributing to incorrect results.
Lastly I change Computed to (max) and results don't update. I recommend backend code to recalculate computed values.
Diving a little deeper I notice when a submission is deleted, its leaderboard score is not. I think this should be changed. I believe we've been discussing whether or not we should invalidate submissions when a task is updated. I think we need to think about scores on the leaderboard as well. It seems to me that we would want to trigger a re-calculation of leaderboard scores if the leaderboard has been edited. This may be too big a feature. We could instead simplify by marking old submissions before leaderboard change as invalid or not synced with leaderboard. his is because we may not be able to generate scores for new columns (because of stale scoring program) or may have too many to fit on new leaderboard (again because maybe the scoring program generated too many). In these cases I recommend we mark all scores n/a if the leaderboard has been updated and leave a note on leaderboard or in participant's submission view.
Quick summary of above:
If leaderboard change is minor, re-running submission should suffice to generate new scores and old submissions can be deleted. This gets complicated if submissions take a long time to run.
If leaderboard change is major (new columns\removed columns), the old scoring program will not match leaderboard. It is my belief that editing the task to make a new scoring program that matches the new leaderboard is necessary.
On the topic of submissions tied to tasks:
My two cents on "keeping" old submissions valid or associating submissions to tasks is that is all fine and good as the task has the scoring program that generated the scores associated with submission (this is good for reproduceability). I don't know that I think the task\submission relationship is a good idea. It adds an overwhelming amount of complexity to track. In my opinion, challenges shouldn't change once they are started. We may need to make a couple tweaks here and there, but if the scoring program changes, the task changes, and we should just re-run old submissions to generate new scores. If the old submission doesn't match the new valid format required by a new scoring program\task, I believe it should be considered invalid for the new task and or challenge. These should be marked for deletion or as stale and shouldn't be allowed on the leaderboard at all. They can maybe stay around just for the benefit of the participant's history.
I know that participants are worried about their old "working" submission is not a "failed" one, but I don't see why challenge organizers would change the task last minute in a challenge anyways. Even if they did, they have a duty to re-run the submissions that already happened and if there are too many to reasonably run, I don't think it's a good idea. If the change is absolutely necessary last minute, then why can't every participant remake their submission? If the change is that drastically different and necessary, then it's everyone's responsibility to do their part to make new submissions. If this is annoying to participants, organizers should think wisely whether this change is absolutely necessary.
In summary: Anyways, I think edits to the leaderboard should flag all submissions as stale and require a re-submission to be allowed on leaderboard and only allow successful non-stale submissions to leaderboard.
Picking up where we left off the new test was to make a basic scoring program that copies scores from submission directly to results.txt in the right leaderboard format. This is to make is to I can submit direct scores and have them show up on the leaderboard exactly how I want them. With that said I can recreate the leaderboard from the first image posted about this issue.
These were the input text files:
When I click the score column to sort I do run into the sort issue still:
It's on my localhost. I can share but really any competition will do. It's mainly the scoring program and leaderboard. We can make it live somewhere but I can zip up some data and share here perhaps. template_v2_bundle.zip
OK. It is interesting to note that this does not reproduce the bug. Maybe we need a V1 bundle? Or maybe the problem is really specific to my competition and hard to reproduce. Another hypothesis, maybe it only happens when there are multiple entries per participant.
I can try with a v1 bundle if you want. I was going to focus on the "clicking" of a column that sorts so that perhaps we could make sure sorting works.
Yesterday a participant realized the Leaderboard was wrong, as it is suddenly not ranking the participants correctly. I haven’t changed the ranking scheme or the code:
Activity
Didayolo commentedon Sep 22, 2023
Even clicking on "Score" to re-order the rows does not give the right order
ihsaan-ullah commentedon Sep 22, 2023
I think this is not competition specific problem.
In this competition: https://www.codabench.org/competitions/984/#/results-tab
you can see there is a problem
DESC

ASC

Didayolo commentedon Sep 22, 2023
I don't understand where the order comes from. It could be based on another score, or on the best score of the participant, maybe on the date... Maybe we should investigate the code directly.
ihsaan-ullah commentedon Sep 22, 2023
When you load the leaderboard, the order seems correct. I think the order is changed and is buggy because of the reordering when you click the column

Didayolo commentedon Sep 22, 2023
No, in my case, the leaderboard is wrong when you load the page. You can see that the medals (1st, 2nd, etc.) are not well ordered as well.
Didayolo commentedon Oct 4, 2023
UPDATE:
This problem is linked to another problem: the score in the tab "Submissions" (either participant tab or admin tab) does not reflect perfectly the score in the leaderboard.
This is likely due to the javascript rounding found in submission_manager.tag:
It seems that javascript standard for floats is not precise. The order is based on the scores that you can find in the "Submissions" tab, not the actual scores. The leaderboard reflect the true score.
[-]Leaderboard not ordered by primary column[/-][+]Leaderboard not well ordered[/+]Didayolo commentedon Oct 4, 2023
In https://github.com/codalab/codabench/blob/develop/src/apps/api/serializers/leaderboards.py :
bbearce commentedon Oct 8, 2023
Not seeing this right now and I'm not sure what the difference is:
fresh page load:

click Accuracy:

click Accuracy again:

local:
commit 1c3d366
bbearce@pop-os:~/Documents/codabench$ git branch
bbearce commentedon Oct 8, 2023
That being said I wonder if we should make a leaderboard issue to encapsulate them all:
I have one that's new and I can make it its own issue:
While order above isn't my issue I see that computations aren't working right and options I specifically unset and saved persist when I go back into the editor:
Before:

After:

Cols in DB (wrong changes are being propagated to db):

Update:
Reuploaded the competition with leaderboard:
It works on fresh upload. This leads me to believe as we edit the leaderboard and add\remove columns, old data (whether deleted or not) is contributing to incorrect results.
Lastly I change Computed to (max) and results don't update. I recommend backend code to recalculate computed values.

Diving a little deeper I notice when a submission is deleted, its leaderboard score is not. I think this should be changed. I believe we've been discussing whether or not we should invalidate submissions when a task is updated. I think we need to think about scores on the leaderboard as well. It seems to me that we would want to trigger a re-calculation of leaderboard scores if the leaderboard has been edited. This may be too big a feature. We could instead simplify by marking old submissions before leaderboard change as invalid or not synced with leaderboard. his is because we may not be able to generate scores for new columns (because of stale scoring program) or may have too many to fit on new leaderboard (again because maybe the scoring program generated too many). In these cases I recommend we mark all scores n/a if the leaderboard has been updated and leave a note on leaderboard or in participant's submission view.
Quick summary of above:
If leaderboard change is minor, re-running submission should suffice to generate new scores and old submissions can be deleted. This gets complicated if submissions take a long time to run.
If leaderboard change is major (new columns\removed columns), the old scoring program will not match leaderboard. It is my belief that editing the task to make a new scoring program that matches the new leaderboard is necessary.
On the topic of submissions tied to tasks:
My two cents on "keeping" old submissions valid or associating submissions to tasks is that is all fine and good as the task has the scoring program that generated the scores associated with submission (this is good for reproduceability). I don't know that I think the task\submission relationship is a good idea. It adds an overwhelming amount of complexity to track. In my opinion, challenges shouldn't change once they are started. We may need to make a couple tweaks here and there, but if the scoring program changes, the task changes, and we should just re-run old submissions to generate new scores. If the old submission doesn't match the new valid format required by a new scoring program\task, I believe it should be considered invalid for the new task and or challenge. These should be marked for deletion or as stale and shouldn't be allowed on the leaderboard at all. They can maybe stay around just for the benefit of the participant's history.
I know that participants are worried about their old "working" submission is not a "failed" one, but I don't see why challenge organizers would change the task last minute in a challenge anyways. Even if they did, they have a duty to re-run the submissions that already happened and if there are too many to reasonably run, I don't think it's a good idea. If the change is absolutely necessary last minute, then why can't every participant remake their submission? If the change is that drastically different and necessary, then it's everyone's responsibility to do their part to make new submissions. If this is annoying to participants, organizers should think wisely whether this change is absolutely necessary.
In summary: Anyways, I think edits to the leaderboard should flag all submissions as stale and require a re-submission to be allowed on leaderboard and only allow successful non-stale submissions to leaderboard.
Sorry for the massive wall of text ;)
bbearce commentedon Oct 16, 2023
Hi all,
Picking up where we left off the new test was to make a basic scoring program that copies scores from submission directly to results.txt in the right leaderboard format. This is to make is to I can submit direct scores and have them show up on the leaderboard exactly how I want them. With that said I can recreate the leaderboard from the first image posted about this issue.



These were the input text files:
When I click the score column to sort I do run into the sort issue still:
Didayolo commentedon Oct 16, 2023
@bbearce Awesome. Can you share the URL to this competition?
bbearce commentedon Oct 16, 2023
It's on my localhost. I can share but really any competition will do. It's mainly the scoring program and leaderboard. We can make it live somewhere but I can zip up some data and share here perhaps.
template_v2_bundle.zip
Didayolo commentedon Oct 16, 2023
OK. It is interesting to note that this does not reproduce the bug. Maybe we need a V1 bundle? Or maybe the problem is really specific to my competition and hard to reproduce. Another hypothesis, maybe it only happens when there are multiple entries per participant.
bbearce commentedon Oct 17, 2023
I can try with a v1 bundle if you want. I was going to focus on the "clicking" of a column that sorts so that perhaps we could make sure sorting works.
Didayolo commentedon Oct 18, 2023
You are right, at least this is reproducible, and maybe the cause of other problems. It would be good to fix this problem anyway.
bbearce commentedon Oct 22, 2023
PR 1193 hopefully resolves this.
Didayolo commentedon Oct 25, 2023
I close this issue for now:
If it happens again, we can re-open the issue or open a new one.
Didayolo commentedon Jun 24, 2024
Let's keep only this issue open to track the problem.
Also reported here:
And on the ISPRS International Contest of Individual Tree Crown (ITC) Segmentation: https://www.codabench.org/competitions/3040
Didayolo commentedon Jul 24, 2024
I close this issue to merge and keep track of it here: #1540.
Didayolo commentedon Jun 5, 2025
Happened again
We still don't know how to reproduce this problem