udacity / deep-learning-v2-pytorch

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101
MIT License
5.26k stars 5.32k forks source link

Test the Trained Network: calculate and print avg test loss #400

Open felipeLx opened 2 years ago

felipeLx commented 2 years ago

Have a typo on the code. On the part of #calculate and print avg test loss

Don't exist the variable "classes", looks that should be "class_total" instead.

On for loop / else condition. Now it's: print('Test Accuracy of %5s: N/A (no training examples)' % (classes[i]))\n"

But looks that should be: print('Test Accuracy of %5s: N/A (no training examples)' % (class_total[i]))