farizrahman4u / recurrentshop

Framework for building complex recurrent neural networks with Keras
MIT License
765 stars 218 forks source link

Dropout in Readout Model #99

Open Tobbe02 opened 6 years ago

Tobbe02 commented 6 years ago

Hey, I am trying to add a Dropout-Layer to a Readout Model like this:

rnn = RecurrentSequential(readout='add', teacher_force=True, return_sequences=True)
rnn.add(LSTMCell(10, input_dim=4))
rnn.add(LSTMCell(10))
rnn.add(Dropout(0.2))
rnn.add(LSTMCell(4))

but since Readout only works with Theano and the Dropout-Layer only works with Tensorflow, I somehow got stuck. Does anybody have any suggestions? :) Thanks in advance!