用LSTM网络进行手写数字识别
1 | import tensorflow as tf |
1 | mnist = input_data.read_data_sets(PWS_DIR + "DATASET/MNIST_data", one_hot=True) |
Extracting C:/Users/lenovo/Desktop/Python WORK SPACE/DATASET/MNIST_data\train-images-idx3-ubyte.gz
Extracting C:/Users/lenovo/Desktop/Python WORK SPACE/DATASET/MNIST_data\train-labels-idx1-ubyte.gz
Extracting C:/Users/lenovo/Desktop/Python WORK SPACE/DATASET/MNIST_data\t10k-images-idx3-ubyte.gz
Extracting C:/Users/lenovo/Desktop/Python WORK SPACE/DATASET/MNIST_data\t10k-labels-idx1-ubyte.gz
Iter0, Testing Accuracy= 0.7837
Iter1, Testing Accuracy= 0.8641
Iter2, Testing Accuracy= 0.8951
Iter3, Testing Accuracy= 0.9087
Iter4, Testing Accuracy= 0.9263
Iter5, Testing Accuracy= 0.9325