Skip to content

Commit

Permalink
add decimal to normalization value
Browse files Browse the repository at this point in the history
  • Loading branch information
erinmgraham committed May 11, 2024
1 parent ad2427e commit e4d68a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/scripts/02_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def prepare_dataset(#blank#, #blank#):
def prepare_dataset(train_images, train_labels):

# normalize the RGB values to be between 0 and 1
train_images = train_images / 255
train_images = train_images / 255.0

# one hot encode the training labels
train_labels = keras.utils.to_categorical(train_labels, len(class_names))
Expand Down

0 comments on commit e4d68a3

Please sign in to comment.