-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Metric.ndcg score #24482
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
Metric.ndcg score #24482
Conversation
Hey there @mae5357, thank you for the contribution! Could you please:
Regarding the code, I wonder if it would make sense just to include the check in |
I see a failed check on test coverege |
Hi @mae5357 Do you plan to continue working on this? If not, I'd like to continue. |
Closing in favor of #25672 |
Reference Issues/PRs
Fixes #21335 and #20119
What does this implement/fix? Explain your changes.
Computing Normalized Discounted Cumulative Gain (NDCG) does not make sense for single predictions. Throw an error if
y_true
is a list of length 1 for NDCG and DCG.Any other comments?
Test that this throws the appropriate error by running: