Skip to content

Commit 545d8d9

Browse files
committed
Merge branch 'ajb/ets_rework' of https://github.com/aeon-toolkit/aeon into ajb/ets_rework
2 parents 8e56fd8 + ccd00ae commit 545d8d9

File tree

2 files changed

+138
-123
lines changed

2 files changed

+138
-123
lines changed

aeon/forecasting/_ets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _numba_predict(
353353
else:
354354
# Geometric series formula for calculating phi + phi^2 + ... + phi^h
355355
phi_h = phi * (1 - phi**horizon) / (1 - phi)
356-
seasonal_index = (n_timepoints + horizon) % seasonal_period
356+
seasonal_index = (n_timepoints + horizon - 1) % seasonal_period
357357
return _predict_value(
358358
trend_type,
359359
seasonality_type,

0 commit comments

Comments
 (0)