Skip to content

Commit d4688a0

Browse files
committed
iterative ETS
1 parent e2ef4f1 commit d4688a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aeon/forecasting/_ets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""ETSForecaster class.
22
33
An implementation of the exponential smoothing statistics forecasting algorithm.
4-
Implements additive and multiplicative error models.
4+
Implements additive and multiplicative error models. We recommend using the AutoETS
5+
version, but this is useful for demonstrations.
56
"""
67

78
__maintainer__ = []
@@ -348,7 +349,7 @@ def _numba_predict(
348349
):
349350
# Generate forecasts based on the final values of level, trend, and seasonals
350351
if phi == 1: # No damping case
351-
phi_h = 1
352+
phi_h = horizon
352353
else:
353354
# Geometric series formula for calculating phi + phi^2 + ... + phi^h
354355
phi_h = phi * (1 - phi**horizon) / (1 - phi)

0 commit comments

Comments
 (0)