Created
May 6, 2020 11:09
-
-
Save Praveenk8051/5cc5a938a14238d7c2086b221afbd7e5 to your computer and use it in GitHub Desktop.
Normalize and Reshape MNIST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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