-
Notifications
You must be signed in to change notification settings - Fork 83
[BUG] CLI forecast
command fails with pipeline ensembles #1329
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Bug Report
CLI forecast
command fails when using pipeline ensembles.
Error message:
File "/usr/local/lib/python3.10/site-packages/etna/commands/forecast_command.py", line 125, in forecast
horizon: int = pipeline_configs["horizon"] # type: ignore
KeyError: 'horizon'
Example of failing config
_target_: etna.ensembles.VotingEnsemble
pipelines:
- _target_: etna.pipeline.Pipeline
horizon: 4
model:
_target_: etna.models.SeasonalMovingAverageModel
seasonality: 4
window: 1
transforms: []
- _target_: etna.pipeline.Pipeline
horizon: 4
model:
_target_: etna.models.SeasonalMovingAverageModel
seasonality: 7
window: 2
transforms: []
- _target_: etna.pipeline.Pipeline
horizon: 4
model:
_target_: etna.models.SeasonalMovingAverageModel
seasonality: 7
window: 7
transforms: []
Expected behavior
forecast
and backtest
CLI commands fully support pipeline ensembles.
How To Reproduce
- Run
etna forecast
command with example config - Observe
KeyError
Environment
No response
Additional context
No response
Checklist
- Bug appears at the latest library version
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done