ImportError Traceback (most recent call last)
~\R\WIN-LI~1\3.6/ipykernel_8504/614165243.py in
5 from sklearn.preprocessing import MinMaxScaler
6 scaler = MinMaxScaler()
----> 7 from keras.utils import to_categorical
8
9 #Use this to preprocess input for transfer learning
ImportError: cannot import name 'to_categorical' from 'keras.utils' (C:\Users\USER\anaconda3\lib\site-packages\keras\utils__init__.py)
ImportError Traceback (most recent call last) ~\R\WIN-LI~1\3.6/ipykernel_8504/614165243.py in
5 from sklearn.preprocessing import MinMaxScaler
6 scaler = MinMaxScaler()
----> 7 from keras.utils import to_categorical
8
9 #Use this to preprocess input for transfer learning
ImportError: cannot import name 'to_categorical' from 'keras.utils' (C:\Users\USER\anaconda3\lib\site-packages\keras\utils__init__.py)