Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tensorflow.keras.utils import to_categorical
- y_cat_train = to_categorical(y_train)
- y_cat_test = to_categorical(y_test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement