Closed jianboy closed 1 month ago
Hello,
I solved this issue for myself to replace the np.float_ with the suggestes np.float64 instead.
File prophet/forecaster.py
@staticmethod def fourier_series( dates: pd.Series, period: Union[int, float], series_order: int, ) -> NDArray[~~np.float_~~ -> np.float64]:
It would be then necessary to add numpy>=2.0.X in the requirements.
Would this solve #2595?
Also duplicate with #2588 in my opinion :)
@mrogocki yeah changing it in the forecaster.py
fixed it for now.
Thanks.
adding this before importing prophet works for me
import numpy as np
np.float_ = np.float64
from prophet import Prophet
@kjdeveloper8 order really matters!
import numpy as np
from prophet import Prophet
np.float = np.float64 # AttributeError: `np.floatwas removed in the NumPy 2.0 release. Use
np.float64` instead.
Thank you so much.
adding this before importing prophet works for me
import numpy as np np.float_ = np.float64 from prophet import Prophet
can not import prophet
version: