Skip to content
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

How does "label_gain" affect evaluation metrics: Relative or Absolute? #6633

Closed
unbreading opened this issue Aug 31, 2024 · 1 comment
Closed
Labels

Comments

@unbreading
Copy link

unbreading commented Aug 31, 2024

Does the calculation of the NDCG metric depend on the absolute values of label_gain, or does it only consider their relative values?

For example, given labels 0, 1, and 2, I tried calculating NDCG with the following label_gain settings:

A. label_gain = [0, 1, 1]
B. label_gain = [0, 1, 1 + 1e-10]
C. label_gain = [0, 1, 2]

I observed that the difference in metrics between A and B is significant, while the difference between B and C is minimal or nonexistent. Does this imply that during evaluation, the NDCG metric is only influenced by the relative values of label_gain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants