Skip to content

Instantly share code, notes, and snippets.

@rahulkrishnan98
Created June 12, 2018 09:43
Show Gist options
  • Select an option

  • Save rahulkrishnan98/b639423aa1fe66f4884fe7506929dec2 to your computer and use it in GitHub Desktop.

Select an option

Save rahulkrishnan98/b639423aa1fe66f4884fe7506929dec2 to your computer and use it in GitHub Desktop.
#normalize
X_train=X_train/255
X_test=X_test/255
#one hot encoding
y_train=np_utils.to_categorical(y_train)
y_test=np_utils.to_categorical(y_test)
num_classes=y_test.shape[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment