Assignment MNIST Dataset facing problem in train_mnist function

Failed test case: model trained for more than 8 epochs. The callback should have fired by now…
Expected:
a maximum of 8 epochs,
but got:
10.

image

You posted this in the General Discussions category. Please move it to the relevant course category as described here and our mentors will be happy to help you.

Hello @Muhammad_Rehan1 ,

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

Hello @Muhammad_Rehan1 ,

You have used a particular block of code in # GRADED FUNCTION: train_mnist, after Instantiating the callback class, to load the Fashion MNIST dataset internally within the function using the mnist.load_data(). Then you also normalized the pixel values of the images in the training and testing set and some stuffs.

I couldn’t understand the logic behind it.

Remove this part.
This is not needed.

Hope this helps.
Feel free to reach out if help needed further.

With regards,
Nilosree Sengupta

ok

Is it resolved?

yes

Hello @Muhammad_Rehan1 ,

That’s great!
Happy learning!

With regards,
Nilosree Sengupta