statsmodels.tsa.exponential_smoothing.ets.ETSResults.forecast#
- ETSResults.forecast(steps=1)[source]#
Out-of-sample forecasts
- Parameters:
- steps
int,str,ordatetime,optional If an integer, the number of steps to forecast from the end of the sample. Can also be a date string to parse or a datetime type. However, if the dates index does not have a fixed frequency, steps must be an integer. Default is 1. An integer must be at least 1.
Changed in version 0.15.1:
steps=0raises aValueError. It used to write outside of an internal array, which could crash the Python process, and otherwise returned NaN values.
- steps
- Returns: