#11317·sktime

[BUG] HolidayFeatures: 假列依赖于转换后的日期,因此预测管道会发生故障或默默使用错误的假日

作者: RobKuebler创建于 2026年9月27日更新于 2026年9月27日

Describe the bug

HolidayFeatures is stateless (fit_is_empty=True). Each transform call creates dummy columns only for the holidays that occur in the dates it receives. In a ForecastingPipeline, the Transformer sees the training index in fit and only the forecasting horizon in predict, which usually contain different holidays. The downstream forecaster therefore gets different columns in predict than in fit.

Depending on the forecaster, this either raises an error or gives wrong forecasts with no warning: