image1019×829 99.7 KB

Thank you for your reply. Please check the shape.
class_correct means the correct prediction number, for example, if the test image is negative, the prediction is negative, I made it add 1.
I also read this: IndexError: index out of bounds error - #5 by Gutabaga