ImportError: Cannot Import Name 'to Categorical'

[Solved] ImportError: Cannot Import Name 'to Categorical' | Python - Code Explorer | yomemimo.com
Question : ImportError: cannot import name 'to_categorical'

Answered by : -1vajs8k9qntw

#keras is now fully integrated into tensorflow, so import like this:
from tensorflow.keras.utils import to_categorical

Source : https://stackoverflow.com/questions/67018079/error-in-from-keras-utils-import-to-categorical | Last Update : Mon, 30 Aug 21

Answers related to ImportError: cannot import name 'to categorical'

Code Explorer Popular Question For Python