Primary competition visual

Lelapa AI Buzuzu-Mavi Challenge

Helping Africa
$1 300 USD
Completed (over 1 year ago)
Natural Language Processing
Sentiment Analysis
Machine Translation
498 joined
118 active
Starti
09 Jan 25
Closei
06 Apr 25
Reveali
07 Apr 25
User avatar
marching_learning
Nostalgic Mathematics
Potential bug in the scoring script [TO BE CONFIRMED]
Platform Ā· 24 Feb 2025, 22:54 Ā· 10

Hi every one, I hope you're enjoying this challenge. But It seems that there is a bug in the scoring script.

I went through the eval script. (https://github.com/Lelapa-AI/zindi-inkuba-notebook/blob/main/utils/eval.py) And I notice two bugs:

1/ As it is, it only scores the translation, all others (NLI and sentiement analysis) will always be scored zero because of type mismatch. In the script, the groudth truth is maped via a dictionnary, but the original prediction will remain string so that the F1 score is always 0. The score will always be zero despite a right prediction.

For this bug we may replace the line 26 of the script by :

predicted_label = int(row["Response"])

2/ Again , the weights are not equal by task, the weight of machine translation is 300/302 and the others have weights 1/302 while the expected weight by task is 1/3. In the code, the 300 chrf scores are gathered for the translation part, then we append the f1 score of NLI and sentiment analysis. To solve it, juste reiniitialize the list scores of line 10 by its own mean before the line 44.

@Zindi @Amy_Bray

Discussion 10 answers
User avatar

Great find! Now I get why your score is not 0.9 :P

Upvotes 1
User avatar
marching_learning

No @snow 🙏. It means that my score should be greather than 0.1. For the time being I only worked on translation and sentiment. My Local CV for translation is 0.32 and 0.45 for sentiment. So I expected a score around (0.32 + 0.45)/3 = 0.25xxxx.

Upvotes 0
User avatar
MuhammadQasimShabbeer

I also aggree that it is giving more score to translation task and less to other tasks.

Upvotes 0
User avatar

Yes, I also observed these two bugs in the scoring script yesterday.

Upvotes 1
User avatar
Bappaji

Great idea

Upvotes 0
User avatar

For anyone who hasn't seen already: This has been patched. You can see the commit that introduced the fix here:

https://github.com/Lelapa-AI/zindi-inkuba-notebook/commit/25eda434e171ea7b2fcd1e3920cb8e859816172c

Upvotes 1
User avatar

can the grader be ran to see the updated scores?

Upvotes 1
User avatar
meganomalyZindi Staff
Zindi staff member

Hello! We'll be updating the scoring early next week. Will keep you posted!

Upvotes 2
User avatar
MuhammadQasimShabbeer

Thanks.

Upvotes 0
User avatar

is it fixed? i still get no change of scores

Upvotes 0