Skip to content

[BUG] CLI forecast command fails with pipeline ensembles #1329

Closed
1 task done
brsnw250 opened this issue Jul 24, 2023 · 0 comments · Fixed by #1331
Closed
1 task done

[BUG] CLI forecast command fails with pipeline ensembles #1329

brsnw250 opened this issue Jul 24, 2023 · 0 comments · Fixed by #1331
Assignees
Labels
bug Something isn't working

Comments

@brsnw250
Copy link
Collaborator

brsnw250 commented Jul 24, 2023

🐛 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

  1. Run etna forecast command with example config
  2. Observe KeyError

Environment

No response

Additional context

No response

Checklist

  • Bug appears at the latest library version
@brsnw250 brsnw250 added the bug Something isn't working label Jul 24, 2023
@brsnw250 brsnw250 changed the title [BUG] CLI forecast command fails with pipeline ensambles [BUG] CLI forecast command fails with pipeline ensembles Jul 24, 2023
@brsnw250 brsnw250 self-assigned this Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant