Testing forecasts in chronological order
Time-series splitting trains on earlier observations and tests on later blocks, normally growing the training window each round.
TimeSeriesSplit in practice
Train through March for April, then through April for May. If labels take seven days to arrive, leave an appropriate gap at the boundary.
中文
滚动预测怎样避免训练集看到未来?
时间序列交叉验证从较早观测训练,再用后续时间段测试,训练窗口默认逐次扩展。
TimeSeriesSplit 应用实例
用一月至三月预测四月,再加入四月预测五月。如果标签要等七天才揭晓,在边界留出相应间隔。