ml-class icon indicating copy to clipboard operation
ml-class copied to clipboard

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

Open nelsnelson opened this issue 1 year ago • 1 comments

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)

nelsnelson avatar Dec 03 '23 17:12 nelsnelson