From fdac46ad40036e2ebdeae7f8fd69cd28a2c77781 Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Mon, 13 May 2019 15:21:54 -0700 Subject: [PATCH] Fix DeprecationWarning for float64 casting --- python/fbprophet/forecaster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fbprophet/forecaster.py b/python/fbprophet/forecaster.py index f478b39..6b2fcc5 100644 --- a/python/fbprophet/forecaster.py +++ b/python/fbprophet/forecaster.py @@ -354,8 +354,8 @@ class Prophet(object): 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(