Reshaping issue in problem 3

I tried reshaping the array in problem 3. But it does not give me the expected output although I ass the proper reshaping.What is the issue with this


Hello @LASAL_HETTIARACHCHI ,

Welcome to our Community! Thanks for reaching out.We are here to help you.

I have seen your code.Under Normalizing pixels, the code is not right.It should be images instead of training_images.The code snippet should be this :

# Normalize pixel values
    images = images / 255.0

After making the modification, also save the notebook before submitting.
Hope this helps.

With reagards,
Nilosree Sengupta

2 Likes

Thank you, i was also facing the same error.

Hello @shubham_borghare ,

You’re welcome!!
Happy learning!!

With reagards,
Nilosree Sengupta