C2W4_Assignment.ipynb

i am getting below error , i am not able to
understand what went wrong ,

getting below error


thank you very much

1 Like

Hello @vemula_suman ,

Send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here.

With regards,
Nilosree Sengupta

1 Like

I have attached my file and sent you

Thank you

1 Like

Hello @vemula_suman ,

Checked it. Your loss function isn’t right.
Use Sparse Categorical Crossentropy.

With regards,
Nilosree Sengupta

Thank you very much ,solved my problem.

but why ‘parse Categorical Crossentropy.’ why not 'Categorical Crossentropy’

Hi @vemula_suman
The best way to understand the “why” is to check the difference between the two approaches. You can check this link
Keep learning!