Skip to content

Fix problem with swapped forecast methods in HierarchicalPipeline #1259

Merged
merged 3 commits into from
May 10, 2023

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented May 5, 2023

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

Look at #1257.

Closing issues

Closes #1257.

@Mr-Geekman Mr-Geekman self-assigned this May 5, 2023
@github-actions
Copy link

github-actions bot commented May 5, 2023

@github-actions github-actions bot temporarily deployed to pull request May 5, 2023 08:07 Inactive
@codecov-commenter
Copy link

codecov-commenter commented May 5, 2023

Codecov Report

Merging #1259 (7f463eb) into master (fecfef5) will decrease coverage by 30.38%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##           master    #1259       +/-   ##
===========================================
- Coverage   87.88%   57.50%   -30.38%     
===========================================
  Files         186      186               
  Lines       10644    10645        +1     
===========================================
- Hits         9354     6121     -3233     
- Misses       1290     4524     +3234     
Impacted Files Coverage Δ
etna/pipeline/hierarchical_pipeline.py 29.47% <0.00%> (-65.21%) ⬇️

... and 111 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Mr-Geekman Mr-Geekman requested a review from brsnw250 May 10, 2023 07:42
Comment on lines 318 to 319
if self.ts is None:
raise ValueError("Pipeline is not fitted! Fit the Pipeline before calling forecast method.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move this check before the initial swap to make the code a bit more readable?

@github-actions github-actions bot temporarily deployed to pull request May 10, 2023 09:31 Inactive
@Mr-Geekman Mr-Geekman requested a review from brsnw250 May 10, 2023 10:13
@Mr-Geekman Mr-Geekman merged commit 634a5c6 into master May 10, 2023
@Mr-Geekman Mr-Geekman deleted the issue-1257 branch May 10, 2023 11:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Dangerous behavior of HierarchicalPipeline during interval prediction
3 participants