Skip to content

Commit

Permalink
_forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBagnall committed Nov 5, 2024
1 parent b9bba0f commit 9f8bed6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aeon/forecasting/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ def forecast(self, y, X=None):
single prediction directly after the last point in X.
"""
y = self._preprocess_series(y, axis=self.axis, store_metadata=False)
self.is_fitted = True
return self._forecast(y, X)

@abstractmethod
def _forecast(self, y=None, exog=None): ...
def _forecast(self, y=None, exog=None):
"""Forecast values for time series X.
NOTE: deal with horizons
"""
self.fit(y, exog)
return self.predict(y, exog)

0 comments on commit 9f8bed6

Please sign in to comment.