question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ImportError: cannot import name 'ReducedRegressionForecaster' from 'sktime.forecasting.compose'

See original GitHub issue

Describe the bug Trying to run the first code cell of https://github.com/alan-turing-institute/sktime/blob/master/examples/01_forecasting.ipynb in jupyter lab results in error.

ImportError                               Traceback (most recent call last)
<ipython-input-1-64cd8edf30ed> in <module>
      7 from sktime.forecasting.arima import ARIMA, AutoARIMA
      8 from sktime.forecasting.base import ForecastingHorizon
----> 9 from sktime.forecasting.compose import (
     10     EnsembleForecaster,
     11     ReducedRegressionForecaster,

ImportError: cannot import name 'ReducedRegressionForecaster' from 'sktime.forecasting.compose' (.../env/lib/python3.8/site-packages/sktime/forecasting/compose/__init__.py)

To Reproduce

  • pip install sktime matplotlib jupyterlab pmdarima
  • jupyter lab
  • run the first cell

Expected behavior The code cell runs without errors.

Versions python 3.8.6

System: python: 3.8.6 (default, Dec 25 2020, 15:27:37) [Clang 11.0.0 (clang-1100.0.33.17)] executable: …/env/bin/python machine: macOS-10.15.7-x86_64-i386-64bit

Python dependencies: pip: 21.0.1 setuptools: 49.2.1 sklearn: 0.24.1 sktime: 0.5.3 statsmodels: 0.12.2 numpy: 1.20.1 scipy: 1.6.0 Cython: 0.29.17 pandas: 1.2.2 matplotlib: 3.3.4 joblib: 1.0.1 numba: 0.52.0 pmdarima: 1.8.0 tsfresh: None

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

4reactions
mloningcommented, Feb 10, 2021

Please run git checkout v0.5.2 - the main branch (master) is ahead of the release.

3reactions
sharthZ23commented, Mar 2, 2021

Fixed this with pip install -e '.[all_extras]' instead of simple pip install -e .

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot import name 'ReducedRegressionForecaster' from ' ...
Trying to run the first code cell of https://github.com/alan-turing-institute/sktime/blob/master/examples/01_forecasting.ipynb in jupyter lab ...
Read more >
cannot import name 'ReducedRegressionForecaster' from ' ...
python - ImportError: cannot import name 'ReducedRegressionForecaster' from 'sktime. forecasting. compose' - Stack Overflow. Stack Overflow for ...
Read more >
Forecasting with sktime
Set-up instructions: this notebook give a tutorial on the forecasting learning task supported by sktime . On binder, this should run out-of-the-box.
Read more >
ForecastingPipeline — sktime documentation
ForecastingPipeline is only applying the given transformers to X. The forecaster can ... from sktime.forecasting.compose import ForecastingPipeline >>> from ...
Read more >
Changelog — sktime documentation
[BUG] decouple forecasting pipeline module from registry (#3799) @fkiraly ... The name of the test test_methods_do_not_change_state will change to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found