From 2b88eaf898a0bcb0bda833cedff13aaf6901b7da Mon Sep 17 00:00:00 2001 From: Lucky Lodhi Date: Sun, 16 Nov 2025 15:07:43 +0530 Subject: [PATCH 1/2] Made fit in iterative_forecast as optional --- aeon/forecasting/stats/_arima.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/aeon/forecasting/stats/_arima.py b/aeon/forecasting/stats/_arima.py index f1d62eb7f1..0abae165ba 100644 --- a/aeon/forecasting/stats/_arima.py +++ b/aeon/forecasting/stats/_arima.py @@ -207,8 +207,13 @@ def _forecast(self, y, exog=None): self._fit(y, exog) return float(self.forecast_) - def iterative_forecast(self, y, prediction_horizon): - self.fit(y) + def iterative_forecast(self, y, prediction_horizon, fit=True): + if fit: + self.fit(y) + elif not self.is_fitted: + raise ValueError( + "Model must be fitted before calling iterative_forecast with fit=False." + ) n = len(self._differenced_series) p, q = self.p, self.q phi, theta = self.phi_, self.theta_ From 815aeb744501926d48367b4eedbd3c7fd49efc9e Mon Sep 17 00:00:00 2001 From: Lucky Lodhi Date: Sun, 16 Nov 2025 17:21:13 +0530 Subject: [PATCH 2/2] ci: rerun tests