-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AttributeError: module 'numpy' has no attribute 'object' when using autokeras with structured data #1898
Comments
I got the same error for StructuredDataClassifier,
on here
I replaced np.object --> object, It worked. |
Can I work on this issue? @haifeng-jin |
Its numpy latest version problem. Use pip install numpy==1.23.4 |
@SarthakNikhal Sorry for the late reply. Anyone interested can work on this. |
Also, if someone is having <module 'numpy' has no attribute 'unicode'> |
I am encountering an error when using
autokeras
for structured data classification. When I try to fit a model, I receive the following error message:AttributeError: module 'numpy' has no attribute 'object'.
np.object
was a deprecated alias for the builtinobject
. To avoid this error in existing code, useobject
by itself. Doing this will not modify any behavior and is safe.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I have already upgraded the
autokeras
library to the latest version, but the error persists.Here is an example of how I am using
autokeras
:The text was updated successfully, but these errors were encountered: