mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +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:
|
else:
|
||||||
# Place potential changepoints evenly through first
|
# Place potential changepoints evenly through first
|
||||||
# changepoint_range proportion of the history
|
# changepoint_range proportion of the history
|
||||||
hist_size = np.floor(
|
hist_size = int(np.floor(
|
||||||
self.history.shape[0] * self.changepoint_range)
|
self.history.shape[0] * self.changepoint_range))
|
||||||
if self.n_changepoints + 1 > hist_size:
|
if self.n_changepoints + 1 > hist_size:
|
||||||
self.n_changepoints = hist_size - 1
|
self.n_changepoints = hist_size - 1
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue