Skip to content
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

Allow to change device, batch_size and num_workers of embedding models #396

Merged
merged 10 commits into from
Jun 19, 2024

Conversation

egoriyaa
Copy link
Collaborator

@egoriyaa egoriyaa commented Jun 18, 2024

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Proposed Changes

Closing issues

closes #394

Copy link

github-actions bot commented Jun 18, 2024

🚀 Deployed on https://deploy-preview-396--etna-docs.netlify.app

@github-actions github-actions bot temporarily deployed to pull request June 18, 2024 09:53 Inactive
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@egoriyaa egoriyaa self-assigned this Jun 18, 2024
@github-actions github-actions bot temporarily deployed to pull request June 18, 2024 10:14 Inactive
@egoriyaa egoriyaa requested a review from d-a-bunin June 18, 2024 10:18
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 31 lines in your changes missing coverage. Please review.

Project coverage is 9.61%. Comparing base (5cb8485) to head (af075f8).
Report is 9 commits behind head on master.

Current head af075f8 differs from pull request most recent head 63ce01f

Please upload reports for the commit 63ce01f to get more accurate results.

Files Patch % Lines
etna/libs/ts2vec/ts2vec.py 0.00% 13 Missing ⚠️
etna/libs/tstcc/tstcc.py 0.00% 12 Missing ⚠️
etna/libs/tstcc/tc.py 0.00% 3 Missing ⚠️
etna/transforms/embeddings/models/ts2vec.py 0.00% 2 Missing ⚠️
etna/transforms/embeddings/models/tstcc.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #396       +/-   ##
==========================================
- Coverage   88.88%   9.61%   -79.27%     
==========================================
  Files         224     226        +2     
  Lines       15381   15572      +191     
==========================================
- Hits        13672    1498    -12174     
- Misses       1709   14074    +12365     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

etna/libs/ts2vec/ts2vec.py Show resolved Hide resolved
etna/libs/ts2vec/ts2vec.py Show resolved Hide resolved
etna/libs/tstcc/tstcc.py Show resolved Hide resolved
etna/transforms/embeddings/models/ts2vec.py Outdated Show resolved Hide resolved
@egoriyaa egoriyaa requested a review from d-a-bunin June 18, 2024 16:06
@github-actions github-actions bot temporarily deployed to pull request June 18, 2024 16:10 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 19, 2024 09:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 19, 2024 09:22 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 19, 2024 09:33 Inactive
@@ -239,7 +258,7 @@ def save(self, path: pathlib.Path):

@classmethod
def load(cls, path: pathlib.Path) -> "TS2VecEmbeddingModel":
"""Load an object.
"""Load an object. Model's weights are transferred to cpu during loading.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This clarification about CPU should go in extended summary on next line after empty line.

@github-actions github-actions bot temporarily deployed to pull request June 19, 2024 10:38 Inactive
@egoriyaa egoriyaa merged commit 7429c39 into master Jun 19, 2024
14 checks passed
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.

Allow to change device, batch_size, num_workers of embedding models
2 participants