IndexError: list index out of range for CNN model testing


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