Skip to content

Commit

Permalink
another two
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Dec 3, 2024
1 parent 59e9077 commit 6870c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/prophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ def set_changepoints(self):
if len(self.changepoints) == 0:
pass
else:
too_low = min(self.changepoints) < self.history['ds'].min()
too_high = max(self.changepoints) > self.history['ds'].max()
too_low = self.changepoints.min() < self.history['ds'].min()
too_high = self.changepoints.max() > self.history['ds'].max()
if too_low or too_high:
raise ValueError(
'Changepoints must fall within training data.')
Expand Down

0 comments on commit 6870c3a

Please sign in to comment.