Skip to content

Make DifferencingTransform to fail on new segments with understandable error #1141

Merged
merged 16 commits into from Mar 6, 2023

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Mar 1, 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

Make DifferencingTransform to fail on new segments with understandable error in inplace mode.

Closing issues

Closes #1137.

@Mr-Geekman Mr-Geekman self-assigned this Mar 1, 2023
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

@github-actions github-actions bot temporarily deployed to pull request March 1, 2023 09:06 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2023

Codecov Report

❗ No coverage uploaded for pull request base (inference-v2.1@e663bed). Click here to learn what that means.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@                Coverage Diff                @@
##             inference-v2.1    #1141   +/-   ##
=================================================
  Coverage                  ?   70.63%           
=================================================
  Files                     ?      164           
  Lines                     ?     9005           
  Branches                  ?        0           
=================================================
  Hits                      ?     6361           
  Misses                    ?     2644           
  Partials                  ?        0           

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

@github-actions github-actions bot temporarily deployed to pull request March 1, 2023 12:04 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 1, 2023 12:15 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 1, 2023 12:31 Inactive
etna/transforms/math/differencing.py Outdated Show resolved Hide resolved
etna/transforms/math/differencing.py Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request March 2, 2023 07:36 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 2, 2023 11:16 Inactive
CHANGELOG.md Outdated Show resolved Hide resolved
etna/transforms/utils.py Outdated Show resolved Hide resolved
etna/transforms/math/sklearn.py Outdated Show resolved Hide resolved
etna/transforms/math/differencing.py Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 12:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 13:24 Inactive
@@ -63,6 +65,7 @@ def __init__(
self.inplace = inplace
self.out_column = out_column

self._fit_segments: Optional[List[str]] = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this attribute? You use it only in fit

@github-actions github-actions bot temporarily deployed to pull request March 6, 2023 09:44 Inactive
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.

None yet

3 participants