Skip to content

fix: add num_worker argument to embed_and_evalute and pass label_tag#731

Merged
JoanFM merged 8 commits intodocarray:mainfrom
guenthermi:fix-missing-kwargs-in-embed_and_evaluate
Nov 9, 2022
Merged

fix: add num_worker argument to embed_and_evalute and pass label_tag#731
JoanFM merged 8 commits intodocarray:mainfrom
guenthermi:fix-missing-kwargs-in-embed_and_evaluate

Conversation

@guenthermi
Copy link
Copy Markdown
Contributor

Goals:

  • make it possible to use the num_worker attribute in the embed_and_evaluate function for the matching step
  • pass the label_tag to the execution of evaluate in the embed_and_evaluate function
  • check and update documentation, if required. See guide

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 8, 2022

Codecov Report

Base: 87.85% // Head: 54.94% // Decreases project coverage by -32.91% ⚠️

Coverage data is based on head (3b7e084) compared to base (bb9d1c3).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #731       +/-   ##
===========================================
- Coverage   87.85%   54.94%   -32.92%     
===========================================
  Files         133      133               
  Lines        6614     6614               
===========================================
- Hits         5811     3634     -2177     
- Misses        803     2980     +2177     
Flag Coverage Δ
docarray 54.94% <ø> (-32.92%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/mixins/evaluation.py 9.09% <ø> (-79.03%) ⬇️
docarray/array/queryset/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/document/strawberry_type.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/array/mixins/dataloader/helper.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/document/mixins/rich_embedding.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/math/evaluation.py 0.00% <0.00%> (-94.83%) ⬇️
docarray/array/queryset/parser.py 0.00% <0.00%> (-88.34%) ⬇️
docarray/document/mixins/mesh.py 16.66% <0.00%> (-83.34%) ⬇️
docarray/array/mixins/embed.py 9.89% <0.00%> (-82.42%) ⬇️
docarray/document/mixins/strawberry.py 16.27% <0.00%> (-79.07%) ⬇️
... and 91 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@guenthermi guenthermi marked this pull request as ready for review November 8, 2022 13:59
Copy link
Copy Markdown

@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.

minor comment

…:guenthermi/docarray into fix-missing-kwargs-in-embed_and_evaluate
@guenthermi guenthermi requested a review from bwanglzu November 8, 2022 14:27
Copy link
Copy Markdown
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

For the label tag, it seems there should be a test covering it

@guenthermi guenthermi requested review from JoanFM and removed request for bwanglzu November 9, 2022 08:17
@JoanFM JoanFM merged commit e7a59e8 into docarray:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants