Skip to content

Instantly share code, notes, and snippets.

@siddharthganjoo
Created August 30, 2021 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siddharthganjoo/7d7e4d93b511cd7ad7f054f7d29c0cf2 to your computer and use it in GitHub Desktop.
Save siddharthganjoo/7d7e4d93b511cd7ad7f054f7d29c0cf2 to your computer and use it in GitHub Desktop.
from tensorflow.keras.utils import to_categorical
y= to_categorical(y)
y.astype('int32')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment