Dense层
Dense就是常用的全连接层
源码分析:
model = Sequential()
model.add(LSTM(4, input_shape=(1, look_back)))
model.add(Dense(2213)) ## 2213是输出长度
model.compile(loss='categorical_crossentropy', optimizer='adam')
model.fit(trainX, TrainY, epochs=100, batch_size=1, verbose=2)