You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from pytorch_forecasting.utils import autocorrelation
Actual behavior
Import error: No module named 'numpy.lib.function_base'
Code to reproduce the problem
from pytorch_forecasting.utils import autocorrelation
I think the issue is from from numpy.lib.function_base import iterable in base_model.py, but function_base is deprecated. You can now import iterable directly in numpy like so: from numpy import iterable.
Expected behavior
from pytorch_forecasting.utils import autocorrelation
Actual behavior
Import error:
No module named 'numpy.lib.function_base'
Code to reproduce the problem
I think the issue is from
from numpy.lib.function_base import iterable
in base_model.py, but function_base is deprecated. You can now import iterable directly in numpy like so:from numpy import iterable
.I'm on Numpy 2.0, but I think this change is already in latest version of numpy 1.26 (https://numpy.org/doc/stable/reference/generated/numpy.iterable.html)
The text was updated successfully, but these errors were encountered: