ml-class
ml-class copied to clipboard
cannot import name 'np_utils' from 'keras.utils'
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)