Created
July 1, 2020 04:01
-
-
Save emuccino/9b454a1c9851005920618fa4d48381f2 to your computer and use it in GitHub Desktop.
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
from tensorflow.keras.datasets import mnist | |
#load mnist data | |
(x_train,y_train),(x_test,y_test) = mnist.load_data() | |
#reshape and scale input image data | |
x_train, x_test = (x.reshape(*x.shape,1)/x.max() for x in (x_train,x_test)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment