Giter VIP home page Giter VIP logo

Comments (5)

hanzigs avatar hanzigs commented on July 17, 2024 1

I got the same error for StructuredDataClassifier,
Since Numpy 1.24, np.object is deprecated, and to be replaced with object

ERROR:500 Internal Server Error: module 'numpy' has no attribute 'object'.
`np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` 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

on here

  File "C:\Users\PA\anaconda3\envs\py3117\Lib\site-packages\autokeras\adapters\input_adapters.py", line 73, in convert_to_dataset
    if isinstance(dataset, np.ndarray) and dataset.dtype == np.object:

I replaced np.object --> object, It worked.
Can we update the library.
Using
Python 3.11.7
Autokeras 1.0.20
Numpy 1.26.3

from autokeras.

SarthakNikhal avatar SarthakNikhal commented on July 17, 2024

Can I work on this issue? @haifeng-jin

from autokeras.

Gafar1994 avatar Gafar1994 commented on July 17, 2024

Its numpy latest version problem. Use pip install numpy==1.23.4

from autokeras.

haifeng-jin avatar haifeng-jin commented on July 17, 2024

@SarthakNikhal Sorry for the late reply. Anyone interested can work on this.

from autokeras.

wstlxx avatar wstlxx commented on July 17, 2024

Also, if someone is having <module 'numpy' has no attribute 'unicode'>
you can simply replace np.unicode into np.str_ in input_adapters.py

from autokeras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.