-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(types): add ranking evaluation mixin #3698
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3698 +/- ##
==========================================
+ Coverage 87.76% 88.45% +0.68%
==========================================
Files 174 176 +2
Lines 12285 12376 +91
==========================================
+ Hits 10782 10947 +165
+ Misses 1503 1429 -74
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
6a26773
to
f2c7473
Compare
…-evaluation-mixin
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.
please wait until i have time to review it, probably on Thursday
7ffaceb
to
47c63d2
Compare
# Conflicts: # docs/fundamentals/document/documentarray-api.md
7486c50
to
89d5f6d
Compare
# Conflicts: # docs/fundamentals/document/documentarray-api.md
📝 Docs are deployed on https://ranking-evaluation-mixin--jina-docs.netlify.app 🎉 |
('ndcg_at_k', {}), | ||
], | ||
) | ||
def test_eval_mixin_perfect_match(metric_fn, kwargs): |
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.
@hanxiao I do not understand how is here NDCG evaluated? How can I pass relevance information of the different groundtruth elements?
def test_ndcg_at_k(): | ||
NDCG_K_VAL = 1.0 | ||
|
||
relevance = [3, 2, 3, 0, 0, 1, 2, 2, 3, 0] |
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.
How is this supposed to be passed through the DA.evaluate method?
No description provided.