Skip to content

Add params_to_tune for SeasonalMovingAverageModel, MovingAverageModel, NaiveModel and DeadlineMovingAverageModel #1208

Merged
merged 5 commits into from Apr 6, 2023

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Apr 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 #1193.

Closing issues

Closes #1193.

…rageModel, NaiveModel and DeadlineMovingAverageModel
@Mr-Geekman Mr-Geekman self-assigned this Apr 5, 2023
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

@github-actions github-actions bot temporarily deployed to pull request April 5, 2023 16:11 Inactive
@@ -40,7 +47,8 @@ def __init__(self, window: int = 3, seasonality: str = "month"):
Only allowed monthly or annual seasonality.
"""
self.window = window
self.seasonality = SeasonalityMode(seasonality)
self.seasonality = seasonality
self._seasonality = SeasonalityMode(seasonality)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is done because to_dict works incorrectly with enums. We should probably fix this somehow, but here I made a simple fix.

Copy link
Collaborator

Choose a reason for hiding this comment

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

May you add issue about it and TODO here

@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2023

Codecov Report

❗ No coverage uploaded for pull request base (automl-2.0@1e51920). 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              @@
##             automl-2.0    #1208   +/-   ##
=============================================
  Coverage              ?   69.07%           
=============================================
  Files                 ?      177           
  Lines                 ?    10522           
  Branches              ?        0           
=============================================
  Hits                  ?     7268           
  Misses                ?     3254           
  Partials              ?        0           

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

@@ -40,7 +47,8 @@ def __init__(self, window: int = 3, seasonality: str = "month"):
Only allowed monthly or annual seasonality.
"""
self.window = window
self.seasonality = SeasonalityMode(seasonality)
self.seasonality = seasonality
self._seasonality = SeasonalityMode(seasonality)
Copy link
Collaborator

Choose a reason for hiding this comment

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

May you add issue about it and TODO here

etna/models/deadline_ma.py Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request April 6, 2023 08:34 Inactive
@alex-hse-repository alex-hse-repository merged commit db8cd3a into automl-2.0 Apr 6, 2023
12 checks passed
@Mr-Geekman Mr-Geekman deleted the issue-1193 branch April 6, 2023 09:20
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