[code removed - moderator]
The function is giving an error even if I use training_images it is causing the same issue.
Can someone help please?
[code removed - moderator]
The function is giving an error even if I use training_images it is causing the same issue.
Can someone help please?
Please see this link on return type of load_data
and fix your code to rescale and normalize training images.
hello, I did go through the link but I’m not sure where I’m going wrong can you please help me?
Please refresh your workspace and try again.
See Refresh your Lab Workspace
section here
Don’t change code other than where instructed.
Hello, I did try to refresh the lab and I’m still getting the same error. I’m not sure what changes I can make in the code can you please help me figure out where I’m going wrong?
You haven’t removed the assignment file before refreshing the workspace. If you are facing the same issue, it means that these lines are absent in the notebook:
# Reload the images in case you run this cell multiple times
(training_images, _), _ = tf.keras.datasets.mnist.load_data(path=data_path)
# Apply your function
training_images = reshape_and_normalize(training_images)
It helps if you follow instructions carefully and backup your assignment file by renaming it before refreshing the workspace.
Don’t forget to remove code from all your posts.
both the lines are in my code, I did backup before refreshing the workspace as well. Also, I do not know how to remove the assignment file from the workspace
thanks fo your help I was able to figure out how to update the file and it seems to be working now.