Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added RankingEvaluatorOptions and removed the truncation limit. #4081
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
Added RankingEvaluatorOptions and removed the truncation limit. #4081
Changes from all commits
8749a10
fe25bf6
cb446be
b5ee220
b9a7471
80e238d
2ef424d
3958f01
56d4595
00bc7ef
d0462f1
87cefbc
c3a908b
c0a430a
0b55903
56983d5
3382d1d
8ca5d01
4ac459e
8f20ea4
f9f9e1d
21cb8f3
138f201
55e3460
e43bba3
421d713
4f4f81c
89082a5
f167af8
0d4d34f
6cd2f15
1424ab3
3ee03ca
34b7a91
5539127
02053a6
35ad3c0
0eb3e2b
a3291b1
37af437
68f1f35
5b90a34
0efe238
b6584aa
7d47832
0e99776
20a4490
0d111f4
72d1a4d
ea9ebed
013be4f
d2ae365
a9e6db8
5855f99
724bb12
d009f55
8f7b6cd
30d56a0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add at least one new test for this new API? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And ensure there is an existing unit test covering the existing MAML interface for
RankingEvaluator
.It should look about like:
CV tr=LightGBMRanking eval=RankingEvaluator{t=10} k=2 loader=TextLoader{col=Label:R4:0 col=GroupId:TX:1 col=Features:R4:2-138 header=+} data=MSLR-WEB10K_Fold1.TRAIN.SMALL_10k-rows.tsv xf=HashTransform{col=GroupId} xf=NAHandleTransform{col=Features}
Specifically the
eval=RankingEvaluator{t=10}
part, where the DCG/NDCG threshold is set.The output should end in a block of DCG/NDCG@N metrics:
And it should match the
@N
set in the RankingEvaluator's t=N. #Resolved