mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-18 21:21:22 +00:00
Fix DeprecationWarning for float64 casting
This commit is contained in:
parent
f660264e23
commit
fdac46ad40
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue