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

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

from sktime.forecasting.compose import ReducedRegressionForecaster

那是因为那不存在。

https://github.com/alan-turing-institute/sktime/blob/master/sktime/forecasting/compose/__init__.py

这不是由 librray 导出的。也许你想要

RegressionForcasterRecursiveRegressionForecaster