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

Add size method to TSDataset class #238

Merged
merged 6 commits into from Feb 12, 2024
Merged

Add size method to TSDataset class #238

merged 6 commits into from Feb 12, 2024

Conversation

yellowssnake
Copy link
Collaborator

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 #235

Copy link

github-actions bot commented Feb 8, 2024

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

@github-actions github-actions bot temporarily deployed to pull request February 8, 2024 11:23 Inactive
@yellowssnake yellowssnake reopened this Feb 8, 2024
@github-actions github-actions bot temporarily deployed to pull request February 8, 2024 11:40 Inactive
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e978ad0) 89.04% compared to head (8bf95fd) 89.05%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #238   +/-   ##
=======================================
  Coverage   89.04%   89.05%           
=======================================
  Files         199      199           
  Lines       13200    13208    +8     
=======================================
+ Hits        11754    11762    +8     
  Misses       1446     1446           

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

@github-actions github-actions bot temporarily deployed to pull request February 8, 2024 12:55 Inactive
@ostreech1997
Copy link
Collaborator

We should update CHANGELOG.md file.

Returns
-------
:
Number of time series, number of segments, and number of features (if their amounts are equal in each segment; otherwise, returns None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think, we should write this info before "Returns", something like this:

def size(self) -> Tuple[int, int, Optional[int]]:
        """Return size of TSDataset.

        The order of sizes is (number of time series, number of segments, 
        and number of features (if their amounts are equal in each segment; otherwise, returns None)).
        
        Returns
        -------
        :
            Tuple of TSDataset sizes 
        """

@github-actions github-actions bot temporarily deployed to pull request February 9, 2024 09:15 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 12, 2024 06:52 Inactive
CHANGELOG.md Outdated
@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add dataset integrity check using hash for internal datasets ([#151](https://github.com/etna-team/etna/pull/151))
- Create page about internal datasets in documentation ([#175](https://github.com/etna-team/etna/pull/175))
- Add usage example of internal datasets in `101-get_started.ipynb` and `305-classification.ipynb` tutorials ([#202](https://github.com/etna-team/etna/pull/202))
-
- The size method has been added to TSDataset in `TSDataset.py`([#238](https://github.com/etna-team/etna/pull/238))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think, that we could rewrite it like this:

Add size method to `TSDataset` class ([#238](https://github.com/etna-team/etna/pull/238))

@github-actions github-actions bot temporarily deployed to pull request February 12, 2024 09:48 Inactive
@yellowssnake yellowssnake merged commit 491de74 into master Feb 12, 2024
16 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.

Add size method to TSDataset class
2 participants