Skip to content

Instantly share code, notes, and snippets.

@Praveenk8051
Created May 6, 2020 11:09
Show Gist options
  • Save Praveenk8051/5cc5a938a14238d7c2086b221afbd7e5 to your computer and use it in GitHub Desktop.
Save Praveenk8051/5cc5a938a14238d7c2086b221afbd7e5 to your computer and use it in GitHub Desktop.
Normalize and Reshape MNIST
#Normalize
X_train = X_train / 255.0
test = test / 255.0
#Reshape
X_train = X_train.values.reshape(-1,28,28,1)
test = test.values.reshape(-1,28,28,1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment