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
Conversation
🚀 Deployed on https://deploy-preview-238--etna-docs.netlify.app |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
We should update CHANGELOG.md file. |
etna/datasets/tsdataset.py
Outdated
Returns | ||
------- | ||
: | ||
Number of time series, number of segments, and number of features (if their amounts are equal in each segment; otherwise, returns None) |
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.
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
"""
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)) |
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.
I think, that we could rewrite it like this:
Add size method to `TSDataset` class ([#238](https://github.com/etna-team/etna/pull/238))
Before submitting (must do checklist)
Proposed Changes
Closing issues
closes #235