fourier_series: fix Windows int -> np.int64 dtype (#2340)

This commit is contained in:
Yasir Ekinci 2023-01-13 00:58:48 +01:00 committed by GitHub
parent eb71d0117b
commit 0a5becb777
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))