Introduction to Tensoflow Practical Computer Vision
import tensorflow as tf
from tensorflow import keras
fashion_mnist = keras.datasets.fashion_mnist#导入数据集(train_images,train_labels),(test_images,test_labels)= fashion_mnist.load_data()
print(train_images.shape)#60000张,每张28*28import matplotlib.pyplot as plt
plt.imshow(train_images[0])
The neural network is not trained as much as possible. If there is more, overfitting will occur. That is to say, it recognizes all training pictures well, but recognizes new pictures poorly. You can compare the test LOSS with the training LOSS. Bifurcation is over-fitting. In tensorflow, the callback class is used to judge and terminate the training in time