8000 feat: ranking evaluate driver may need more than one field by JoanFM · Pull Request #1953 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: ranking evaluate driver may need more than one field #1953

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

Merged
merged 4 commits into from
Feb 18, 2021

Conversation

JoanFM
Copy link
Contributor
@JoanFM JoanFM commented Feb 16, 2021

Changes introduced
Motivation of this PR comes from the realization that NDCGEvaluator is not applicable, since more than one field may be needed for it.

RankingEvaluateDriver now can access multiple fields of the matches of both Document and GroundTruth.

For instance, for NDCGEvaluator, we may need:
fields = ('tags__id', 'score__value')

So that the NDCGEvaluator would get
desired = (id, relevance), (id, relevance)
actual = (id, score), (id, score) so that it can be properly computed

@JoanFM JoanFM requested a review from a team as a code owner February 16, 2021 14:00
@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/driver labels Feb 16, 2021
@codecov
Copy link
codecov bot commented Feb 16, 2021

Codecov Report

Merging #1953 (97ca14a) into master (9a844b6) will increase coverage by 1.88%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1953      +/-   ##
==========================================
+ Coverage   84.71%   86.60%   +1.88%     
==========================================
  Files         148      148              
  Lines        7094     7106      +12     
==========================================
+ Hits         6010     6154     +144     
+ Misses       1084      952     -132     
Impacted Files Coverage Δ
jina/drivers/evaluate.py 98.57% <100.00%> (+0.29%) ⬆️
jina/peapods/runtimes/jinad/client.py 82.48% <0.00%> (-1.46%) ⬇️
jina/drivers/control.py 95.08% <0.00%> (+1.63%) ⬆️
jina/clients/base.py 80.83% <0.00%> (+1.66%) ⬆️
jina/drivers/convertdriver.py 93.93% <0.00%> (+3.03%) ⬆️
jina/flow/mixin/crud.py 89.28% <0.00%> (+3.57%) ⬆️
jina/peapods/runtimes/zmq/zed.py 91.42% <0.00%> (+3.57%) ⬆️
jina/peapods/runtimes/jinad/__init__.py 95.83% <0.00%> (+4.16%) ⬆️
jina/clients/helper.py 100.00% <0.00%> (+4.54%) ⬆️
jina/jaml/helper.py 93.89% <0.00%> (+6.87%) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a844b6...f0acfd1. Read the comment docs.

@JoanFM JoanFM force-pushed the rankevaluate-multiple-fields branch from 9b84d34 to a86e78c Compare February 16, 2021 14:12
@github-actions
Copy link
github-actions bot commented Feb 16, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1103, delta to last 3 avg.: +0%
  • 🐢🐢 query QPS at 18, delta to last 3 avg.: -7%

Breakdown

Version Index QPS Query QPS
current 1103 18
1.0.1 1110 18
1.0.0 1090 20

Backed by latency-tracking. Further commits will update this comment.

@JoanFM JoanFM force-pushed the rankevaluate-multiple-fields branch from 2dcbb8e to 4508080 Compare February 16, 2021 14:46
@JoanFM JoanFM force-pushed the rankevaluate-multiple-fields branch from 9f5af3f to 915fdc0 Compare February 16, 2021 16:28
@jina-bot jina-bot added size/M and removed size/S labels Feb 16, 2021
bwanglzu
bwanglzu previously approved these changes Feb 17, 2021
Copy link
Member
@bwanglzu bwanglzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member
@nan-wang nan-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

@JoanFM JoanFM requested a review from bwanglzu February 18, 2021 06:03
@JoanFM JoanFM merged commit 9cea5e7 into master Feb 18, 2021
@JoanFM JoanFM deleted the rankevaluate-multiple-fields branch February 18, 2021 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/driver component/resource size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0