初识神经网络(MNIST)
1 加载Keras中的MNIST数据集
from keras.datasets import mnist
(train_images,train_labels),(test_images,test_labels)=mnist.load_data()
train_images.shape
(60000, 28, 28)
train_labels.shape
(60000,)
train_labels
array([5, 0, 4, ..., 5, 6, 8], dtype=uint8)
2 网络
原创
2020-12-20 17:58:44 ·
323 阅读 ·
1 评论