Skip to content

Decouple DeadlineMovingAverageModel from PerSegmentModelMixin #1140

Merged
merged 3 commits into from Mar 2, 2023

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Feb 28, 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 #1117.

Closing issues

Closes #1117.

@Mr-Geekman Mr-Geekman self-assigned this Feb 28, 2023
@github-actions
Copy link

github-actions bot commented Feb 28, 2023

@github-actions github-actions bot temporarily deployed to pull request February 28, 2023 17:19 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2023

Codecov Report

❗ No coverage uploaded for pull request base (inference-v2.1@0c283ec). 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    #1140   +/-   ##
=================================================
  Coverage                  ?   86.87%           
=================================================
  Files                     ?      164           
  Lines                     ?     8985           
  Branches                  ?        0           
=================================================
  Hits                      ?     7806           
  Misses                    ?     1179           
  Partials                  ?        0           

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

@@ -178,7 +188,7 @@ def test_deadline_model_predict_fail_not_enough_context(simple_df):
model = DeadlineMovingAverageModel(window=1000)
model.fit(simple_df)
with pytest.raises(ValueError, match="Given context isn't big enough"):
_ = model.forecast(simple_df, prediction_size=7)
_ = model.predict(simple_df, prediction_size=7)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you replace method here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Look at the test name, it was an artifact of copypasta.

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