Skip to content

Commit

Permalink
Change the default value to LinearRegression(positive=True) in the …
Browse files Browse the repository at this point in the history
…constructor of `StackingEnsemble` (#1238)
  • Loading branch information
ostreech1997 committed Apr 21, 2023
1 parent 3cd565b commit f06cd82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
-
### Changed
-
-
- Set the default value of `final_model` to `LinearRegression(positive=True)` in the constructor of `StackingEnsemble` ([#1238](https://github.com/tinkoff-ai/etna/pull/1238))
-
-
-
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion etna/ensembles/stacking_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
"""
self._validate_pipeline_number(pipelines=pipelines)
self.pipelines = pipelines
self.final_model = LinearRegression() if final_model is None else final_model
self.final_model = LinearRegression(positive=True) if final_model is None else final_model
self._validate_backtest_n_folds(n_folds)
self.n_folds = n_folds
self.features_to_use = features_to_use
Expand Down

1 comment on commit f06cd82

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.