from keras import models
from keras import layers
network = model.Sequential()
network.add (layers.Dense(512,activation ='relu',
input_shape = (28*28,)))
network.add (layers.Dense(10,activation='softmax'))
在jupyter运行例程时出现如下错误
AttributeError: (‘The following error happened while compiling the node’, DotModulo(A, s, m, A2, s2, m2), ‘\n’, “module ‘numpy.core.multiarray’ has no attribute ‘_get_ndarray_c_version’”)
解决方法:
pip install --upgrade numpy
pip install --upgrade theano