mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-16 08:38:30 +00:00
fourier_series: fix Windows int -> np.int64 dtype (#2340)
This commit is contained in:
parent
eb71d0117b
commit
0a5becb777
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ class Prophet(object):
|
|||
raise ValueError("series_order must be >= 1")
|
||||
|
||||
# convert to days since epoch
|
||||
t = dates.to_numpy(dtype=int) // NANOSECONDS_TO_SECONDS / (3600 * 24.)
|
||||
t = dates.to_numpy(dtype=np.int64) // NANOSECONDS_TO_SECONDS / (3600 * 24.)
|
||||
|
||||
x_T = t * np.pi * 2
|
||||
fourier_components = np.empty((dates.shape[0], 2 * series_order))
|
||||
|
|
|
|||
Loading…
Reference in a new issue