Skip to content

Change the default value to LinearRegression(positive=True) in the constructor of StackingEnsemble #1238

Merged
merged 3 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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