Describe the bug
From the 1.24 Numpy version 1.24, aliases for float, int and similar dtypes are removed.
To Reproduce
Steps to reproduce the behavior:
Clone the repo
Check if you have a 1.24>= numpy version or update your numpy version
Run the example of the dann.py for image classification
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
Expected behavior
Expect the model to work correctly.
Desktop (please complete the following information):
OS: osx
Browser chrome
Solution
Replace all np.float, np.int, ... with float, int, dtypes.
Describe the bug From the 1.24 Numpy version 1.24, aliases for float, int and similar dtypes are removed.
To Reproduce Steps to reproduce the behavior:
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.Expected behavior Expect the model to work correctly.
Desktop (please complete the following information):
Solution Replace all np.float, np.int, ... with float, int, dtypes.