how to standardize the image data to have values between 0 and 1 1

how to standardize the image data to have values between 0 and 1

# Standardize data to have feature values between 0 and 1.
train_x = train_x_flatten/255.
test_x = test_x_flatten/255.

Here is what the above code is Doing:
1. We are flattening the images.
2. We are standardizing the data.

Similar Posts