Created
March 6, 2021 18:08
-
-
Save AyishaR/057fac97c05790dbde7c9c939a567083 to your computer and use it in GitHub Desktop.
This file contains 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
# Normalizing the pixel values for faster convergence | |
normalization_layer = layers.experimental.preprocessing.Rescaling(1./255) | |
train_ds = train_ds.map(lambda x, y: (normalization_layer(x), y)) | |
test_ds = test_ds.map(lambda x, y: (normalization_layer(x), y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment