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
Hey @alexeyrodriguez! 👋 I'm here to help with bugs, questions, and contributions. Let's squash those bugs together!
The issue you've identified is indeed a valid concern. The Ideal Discounted Cumulative Gain (IDCG) should be calculated based on the expected_ids, which represent the ideal order of relevant documents, rather than the retrieved_ids. This ensures that the IDCG reflects the best possible ordering of relevant documents.
To correct this, you should modify the calculation of idcg to consider the expected_ids. Here's a suggested change:
This adjustment will ensure that the IDCG is calculated based on the ideal ranking of the expected relevant documents, aligning with the standard definition of NDCG [1].
Bug Description
The calculation of ideal DCG in the NDCG metric (metrics.py) is incorrect:
Ideal DCG should be calculated considering
expected_ids
and notretrieved_ids
as per WikipediaVersion
0.12.1
Steps to Reproduce
Not relevant
Relevant Logs/Tracbacks
No response
The text was updated successfully, but these errors were encountered: