价格面议2020-11-04 15:36:28
mnist数据集是一个公共的手写数字数据集,一共有7W张28*28像素点的0-9手写数字图片和标签,其中有6W张是训练集,1W张是测试集 拉勾IT课小编为大家分解
from tensorflow import keras
from matplotlib import pyplot as plt
mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
其中,x_train为训练集特征,y_train为训练集标签,x_test为测试集特征,y_test为测试集标签。