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

Remove TSDataset.loc, TSDataset.columns #631

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

DanilSmorchkov
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

See #563

Closing issues

Closed #563

@DanilSmorchkov DanilSmorchkov self-assigned this Mar 13, 2025
Copy link

github-actions bot commented Mar 13, 2025

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

@github-actions github-actions bot temporarily deployed to pull request March 13, 2025 15:45 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 13, 2025 16:12 Inactive
Copy link

codecov bot commented Mar 13, 2025

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.50%. Comparing base (f05e030) to head (dda59b2).

Files with missing lines Patch % Lines
etna/analysis/forecast/plots.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
- Coverage   90.51%   90.50%   -0.01%     
==========================================
  Files         259      259              
  Lines       18072    18067       -5     
==========================================
- Hits        16357    16352       -5     
  Misses       1715     1715              

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -969,6 +968,8 @@ def plot_forecast_decomposition(

i = 0
for segment in segments:
skip_first_component = test_ts is None
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was a typo. We need to define the parameter skip_first_component for all segments.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? Is it changing between iterations?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It changes in line 1000 to skip only one component.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -969,6 +968,8 @@ def plot_forecast_decomposition(

i = 0
for segment in segments:
skip_first_component = test_ts is None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why? Is it changing between iterations?

@@ -232,7 +232,7 @@ def _validate_target_columns(y_true: TSDataset, y_pred: TSDataset):

for segment in segments:
for name, dataset in zip(("y_true", "y_pred"), (y_true, y_pred)):
if (segment, "target") not in dataset.columns:
if (segment, "target") not in dataset._df.columns:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this check really necessary now? I thought that now we have a guarantee that each segment has the same set of features. We could probably just check ts.features or smth like that.

Copy link

review-notebook-app bot commented Mar 14, 2025

View / edit / reply to this conversation on ReviewNB

d-a-bunin commented on 2025-03-14T15:26:01Z
----------------------------------------------------------------

Line #17.            print(type(lower_border))

Do we need this print?


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.

Remove TSDataset.loc, TSDataset.columns
2 participants