Answers for "ImportError: cannot import name 'to_categorical'"

1

ImportError: cannot import name 'to_categorical'

#keras is now fully integrated into tensorflow, so import like this:
from tensorflow.keras.utils import to_categorical
Posted by: Guest on August-23-2021

Code answers related to "ImportError: cannot import name 'to_categorical'"

Python Answers by Framework

Browse Popular Code Answers by Language