mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-03 00:41:56 -06:00
MAX_WORK bounded history rows x forecast rows, but a Forecast Start inside the history adds a hindcast row for every history point after it, each holding the same ETS formulas that refit the model over the history before the start. Those rows were not counted, so a start in the middle of 10,000 rows of history built millions of uncharged model fits per recalculation. The forecast row cap is now computed from the rows the model is fit to, after subtracting the hindcast rows; a start so early that the hindcast alone passes the limit is refused, and the default number of periods stays within the cap.