Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy版本更新后np.float弃用 #253

Open
KevinCarpricorn opened this issue Nov 16, 2023 · 1 comment
Open

numpy版本更新后np.float弃用 #253

KevinCarpricorn opened this issue Nov 16, 2023 · 1 comment

Comments

@KevinCarpricorn
Copy link

AttributeError: module 'numpy' has no attribute 'float'.
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.

@didi226
Copy link

didi226 commented Mar 24, 2024

I meet this problem, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants