mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
use builtin int and float (#1850)
This commit is contained in:
parent
8882c6a3e3
commit
8ffa0e02a6
1 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ class Prophet(object):
|
||||||
cp_indexes = (
|
cp_indexes = (
|
||||||
np.linspace(0, hist_size - 1, self.n_changepoints + 1)
|
np.linspace(0, hist_size - 1, self.n_changepoints + 1)
|
||||||
.round()
|
.round()
|
||||||
.astype(np.int)
|
.astype(int)
|
||||||
)
|
)
|
||||||
self.changepoints = (
|
self.changepoints = (
|
||||||
self.history.iloc[cp_indexes]['ds'].tail(-1)
|
self.history.iloc[cp_indexes]['ds'].tail(-1)
|
||||||
|
|
@ -436,7 +436,7 @@ class Prophet(object):
|
||||||
t = np.array(
|
t = np.array(
|
||||||
(dates - datetime(1970, 1, 1))
|
(dates - datetime(1970, 1, 1))
|
||||||
.dt.total_seconds()
|
.dt.total_seconds()
|
||||||
.astype(np.float)
|
.astype(float)
|
||||||
) / (3600 * 24.)
|
) / (3600 * 24.)
|
||||||
return np.column_stack([
|
return np.column_stack([
|
||||||
fun((2.0 * (i + 1) * np.pi * t / period))
|
fun((2.0 * (i + 1) * np.pi * t / period))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue