Skip to content

Commit

Permalink
is_fitted
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyBagnall committed Nov 5, 2024
1 parent 63d22ff commit 107cab7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aeon/forecasting/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ def predict(self, y=None, exog=None):
raise ValueError("Forecaster must be fitted before predicting")
if exog is not None:
raise NotImplementedError("Exogenous variables not yet supported")
# Validate exog
self.is_fitted = True
return self._predict(y, exog)

@abstractmethod
Expand All @@ -109,7 +107,6 @@ 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)

def _forecast(self, y=None, exog=None):
Expand Down

0 comments on commit 107cab7

Please sign in to comment.