Repository navigation
ENH Added warning for ndcg_score when used w/ negative y_true values - #23461
Conversation
deprecation warning for negative ndcg
thomasjpfan
left a comment
There was a problem hiding this comment.
I have not looked into the literature. Is there a valid use case for y_true < 0?
There was a bit of discussion about this in the original issue #17639. I'm largely basing this off of Wang et. al. 2013 which has ~250 citations (details) and affirms the expectation that NDCG is contained within Indeed, with the idea of relevance in document retrieval where NDCG was first formulated, it makes more sense for an additional document to offer no information and have no relevance, than to remove information or relevance from the overall query. From what I've read so far, including this additional survey paper talking about IR methods overall, cumulative gain (CG) is assumed to be monotone non-decreasing, so I don't think that |
Co-authored-by: Thomas J. Fan <[email protected]>
thomasjpfan
left a comment
There was a problem hiding this comment.
Minor nit, otherwise LGTM.
Co-authored-by: Thomas J. Fan <[email protected]>
jeremiedbb
left a comment
There was a problem hiding this comment.
LGTM. I just fixed the what's new entry that was not in the appropriate section.
Thanks @Micky774
…ues (scikit-learn#23461) Co-authored-by: trinhcon <[email protected]> Co-authored-by: Victor Ko <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
Reference Issues/PRs
Resolves #22710
Fixes #17639
What does this implement/fix? Explain your changes.
Adds warning for
ndcg_scorewhen used w/ negativey_truevaluesAny other comments?