Before you pick a model, name the horizon. Tx values in, Ty values out, h steps ahead. One step ahead uses real data at every step. Multi-step feeds its own forecasts back in. Multi-output forecasts the whole horizon in one shot. Step through all three, first as blocks, then with numbers.
Goes with Deep Forecasting, Module 1, Part 2: forecasting strategies
The model knows everything up to December 1959 and has to forecast the 12 months of 1960. The small model is the rule of the video: next month = 17 + 1.26 × this month − 0.32 × last month. Pick a month and read the arithmetic.
For reference: copying each month of 1959, the seasonal naive forecast, misses by . More of those in Beat the benchmark.
| One step | Multi-step | Multi-output | |
|---|---|---|---|
| How | Tx values in, 1 out. Wait for the real value, then forecast again. | Tx values in, 1 out. Slide the window and put your own forecast where the real value would have been. | Tx values in, Ty out. The whole horizon at once, nothing fed back. |
| Who can do it | All models | All models. ARIMA and exponential smoothing work this way by design. | A neural network: give the last layer Ty units. Trees can. A linear regression fits Ty separate equations. |
| The price | Only tells you about the next step | Errors travel: each forecast is built on forecasts | More to learn, and one output for every step of the horizon |
| With other series as inputs | No problem: today's values of everything are known | A wall: you would need the future of every input. The ways out: inputs known in advance, such as the calendar and holidays. | Works: it needs no future inputs |
Tx is how many values the model reads. Ty is how many it produces at once. h is how far ahead you need to see. One step ahead means h is 1. When h is larger, you either reuse a one-step model h times, or train a model whose Ty equals h.
Call model.predict on a test set, in scikit-learn or anywhere else, and every row of that test set holds real past values. So what you get is a one-step-ahead forecast for every row. It looks excellent, and it says nothing about how the model does a year ahead.
It is like the next-word suggestion on your phone. One word is easy. A sentence built from its own suggestions drifts. With the 2-lag rule, January is off by a little, and by December the model is mostly reading its own guesses.
The 2-lag rule beats the simple benchmarks one month ahead and loses to all of them over the year. So name your horizon before anything else, and report the error at that horizon.