手写数字图片的神经网络构建
from keras import mnist
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()
print(train_images.shape)
错误:
ImportError: cannot import name 'mnist'
解决:
将代码改为:
from keras.datasets import mnist
import matplotlib.pyplot as plt
(train_images, train_labels), (test_images, test_labels) = mnist.load_data()
print(train_images.shape)
关于spyder无法显示动态图问题
Toos-->Preferences-->IPython console-->Graphics-->
Graphics backend-->Backend-->设置成Automatic