Skip to content

Commit

Permalink
Fix DeprecationWarning for float64 casting
Browse files Browse the repository at this point in the history
  • Loading branch information
bletham committed May 13, 2019
1 parent f660264 commit fdac46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fbprophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def set_changepoints(self):
else:
# Place potential changepoints evenly through first
# changepoint_range proportion of the history
hist_size = np.floor(
self.history.shape[0] * self.changepoint_range)
hist_size = int(np.floor(
self.history.shape[0] * self.changepoint_range))
if self.n_changepoints + 1 > hist_size:
self.n_changepoints = hist_size - 1
logger.info(
Expand Down

0 comments on commit fdac46a

Please sign in to comment.