Skip to content

Commit

Permalink
FIX: passing non default params for default models STLTransform (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
martins0n authored and d.a.bunin committed Apr 11, 2022
1 parent 011a5cb commit 12feda5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-

### Fixed
-
- Passing non default params for default models STLTransform ([#641](https://github.com/tinkoff-ai/etna/pull/641))
-
- Fixed bug in models `get_model` method ([#623](https://github.com/tinkoff-ai/etna/pull/623))
- Fixed unsafe comparison in plots ([#611](https://github.com/tinkoff-ai/etna/pull/611))
Expand Down
6 changes: 4 additions & 2 deletions etna/transforms/decomposition/stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ def __init__(
if isinstance(model, str):
if model == "arima":
self.model = ARIMA
model_kwargs = {"order": (1, 1, 0)}
if len(model_kwargs) == 0:
model_kwargs = {"order": (1, 1, 0)}
elif model == "holt":
self.model = ETSModel
model_kwargs = {"trend": "add"}
if len(model_kwargs) == 0:
model_kwargs = {"trend": "add"}
else:
raise ValueError(f"Not a valid option for model: {model}")
elif isinstance(model, TimeSeriesModel):
Expand Down

0 comments on commit 12feda5

Please sign in to comment.