From 8ffa0e02a6518be4f1638afab6ab19cf5caeedf6 Mon Sep 17 00:00:00 2001 From: Cuong Duong Date: Sun, 21 Mar 2021 04:50:14 +1100 Subject: [PATCH] use builtin int and float (#1850) --- 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 18aec08..56d062a 100644 --- a/python/fbprophet/forecaster.py +++ b/python/fbprophet/forecaster.py @@ -403,7 +403,7 @@ class Prophet(object): cp_indexes = ( np.linspace(0, hist_size - 1, self.n_changepoints + 1) .round() - .astype(np.int) + .astype(int) ) self.changepoints = ( self.history.iloc[cp_indexes]['ds'].tail(-1) @@ -436,7 +436,7 @@ class Prophet(object): t = np.array( (dates - datetime(1970, 1, 1)) .dt.total_seconds() - .astype(np.float) + .astype(float) ) / (3600 * 24.) return np.column_stack([ fun((2.0 * (i + 1) * np.pi * t / period))