lukas / ml-class

Machine learning lessons and teaching projects designed for engineers
https://www.youtube.com/channel/UCBp3w4DCEC64FZr4k9ROxig
GNU General Public License v2.0
2.34k stars 1.17k forks source link

cannot import name 'np_utils' from 'keras.utils' #76

Open nelsnelson opened 9 months ago

nelsnelson commented 9 months ago

I suppose some things must have changed since the course was released.

(venv) nelsnelson@neptuno:~/Documents/code/ml-class/videos/intro[master]$ python perceptron-single.py 
Traceback (most recent call last):
  File "/Users/nelsnelson/Documents/code/ml-class/videos/intro/perceptron-single.py", line 4, in <module>
    from keras.utils import np_utils
ImportError: cannot import name 'np_utils' from 'keras.utils' (/Users/nelsnelson/Documents/code/ml-class/venv/lib/python3.9/site-packages/keras/utils/__init__.py)
YB-24 commented 1 month ago

Hello Sir, I think an import call can fix this problem. Can you assign this issue to me?