LSTM Followed by Mean Pooling

后端 未结 5 1448
清歌不尽
清歌不尽 2020-12-30 07:14

I\'m using Keras 1.0. My problem is identical to this one (How to implement a Mean Pooling layer in Keras), but the answer there does not seem to be sufficient for me.

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 07:26

    I just attempted to implement the same model as the original poster, and I'm using Keras 2.0.3. The mean pooling after LSTM worked when I used GlobalAveragePooling1D, just make sure return_sequences=True in the LSTM layer. Give it a try!

提交回复
热议问题