python_for_microscopists
python_for_microscopists copied to clipboard
from keras.utils import to_categorical
ImportError Traceback (most recent call last)
~\R\WIN-LI~1\3.6/ipykernel_8504/614165243.py in
ImportError: cannot import name 'to_categorical' from 'keras.utils' (C:\Users\USER\anaconda3\lib\site-packages\keras\utils_init_.py)
Use this - from tensorflow.keras.utils import to_categorical