[c++] Lightly refactor MapMetric, fix small bug, and add unit tests#7202
[c++] Lightly refactor MapMetric, fix small bug, and add unit tests#7202pgrinspan wants to merge 10 commits intolightgbm-org:masterfrom
Conversation
- Simplify CalMapAtK a tad - Ignore queries with no positive labels - Unify weighted/unweighted Eval paths via GetQueryWeight helper - Add test_map_metric.cpp with tests for CalMapAtK and Eval
|
By the way @pgrinspan it looks like you local |
Ok, I've applied it. |
|
Thanks, recent commit looks good! It doesn't apply retroactively. You could do that by force-pushing over those previous commits but don't bother....when this is merged we'll squash everything into a single commit and it'll be attributed to your GitHub account. Just noting because:
Thanks for taking the time to contribute, we greatly appreciate it 😊 |
…'t available in all supported configs.
Contributes to #7021