Created
April 10, 2021 16:27
-
-
Save AyishaR/e5a0b361308199689510aa2a14267209 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_df = train_df.map(lambda x, y: (normalization_layer(x), y)) | |
test_df = test_df.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