-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
API designAPI design & software architectureAPI design & software architecturemodule:forecastingforecasting module: forecasting, incl probabilistic and hierarchical forecastingforecasting module: forecasting, incl probabilistic and hierarchical forecasting
Description
The rolling prediction interface of forecasters is currently confusing and unintuitive.
I suggest we re-factor this as follows:
updateremains as is currentlyupdate_predictbecomes whatupdate_predict_singleis currently, a short-hand for "oneupdatethen onepredict- current functionality in
update_predictgets replaced by anupdate_predict_playback, as below.
update_predict_playback(y, cutoffs, X=None, fh=None, update_params=True) -> list
y is the full series; cutoffs (a list of indices) are indices on the same axis as y (but not necessarily a sub-set of y.index).
It is assumed (and asserted/tested) that cutoff is monotonous. fh must be relative.
The return is a list of same length as cutoffs; the 0-th element is the return of predict after fit to y[:cutoffs[0]] (temporal slice); the i-th element is the return of the i-th update_predict, with y[cutoffs[i-1]:cutoffs[i]].
All predictions are with the fh passed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
API designAPI design & software architectureAPI design & software architecturemodule:forecastingforecasting module: forecasting, incl probabilistic and hierarchical forecastingforecasting module: forecasting, incl probabilistic and hierarchical forecasting