0
我从Keras收到此错误数组:ValueError异常:错误检查时输入:预计dense_6_input有3个维度,但得到了与形状
ValueError: Error when checking input: expected dense_6_input to have 3 dimensions, but got array with shape (55, 72)
上
model.fit(X.values, Y.values, nb_epoch=1000, batch_size=16,verbose=0)
这是我的代码:
from keras.models import Sequential
from keras.layers import Dense, Activation
model = Sequential([
Dense(32, input_shape=X.values.shape),
Activation('relu'),
Dense(10),
Activation('softmax'),
])
model.compile(loss='mse', optimizer='rmsprop')
model.fit(X.values, Y.values, nb_epoch=1000, batch_size=16,verbose=0)
X具有(55,72)
的形状我该如何解决这个问题,以及dense_6_input是什么?