Skip to content

Commit

Permalink
Fix issue #1262
Browse files Browse the repository at this point in the history
  • Loading branch information
malodetz committed May 17, 2023
1 parent 405764c commit a706951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix `DeepARModel` and `TFTModel` to work with changed `prediction_size` ([#1251](https://github.com/tinkoff-ai/etna/pull/1251))
- Fix problems with flake8 B023 ([#1252](https://github.com/tinkoff-ai/etna/pull/1252))
- Fix problem with swapped forecast methods in HierarchicalPipeline ([#1259](https://github.com/tinkoff-ai/etna/pull/1259))
- Fix problem with segment name "target" in `StackingEnsemble` ([#1262](https://github.com/tinkoff-ai/etna/pull/1262))

## [2.0.0] - 2023-04-11
### Added
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 @@ -174,7 +174,7 @@ def _make_features(
"""Prepare features for the ``final_model``."""
# Stack targets from the forecasts
targets = [
forecast[:, :, "target"].rename({"target": f"regressor_target_{i}"}, axis=1)
forecast[:, :, "target"].rename({"target": f"regressor_target_{i}"}, level=1, axis=1)
for i, forecast in enumerate(forecasts)
]
targets = pd.concat(targets, axis=1)
Expand Down

0 comments on commit a706951

Please sign in to comment.