plt.title(class_names[y_data[index]]) 这一句提示
Traceback (most recent call last):
File ".\tf_keras_classification_model.py", line 53, in <module>
show_imgs(3, 5, x_train, y_train, class_names)
File ".\tf_keras_classification_model.py", line 49, in show_imgs
plt.title(class_names[y_data[index]])
TypeError: only integer scalar arrays can be converted to a scalar index