farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

How to set the type of activation function of output inside the LSTM block of decoder? #263

Open amirkhango opened 6 years ago

yyb1995 commented 5 years ago

Maybe you can look at the 45th line of cell.py.y = Activation(self.activation)(W2(h)). h is the lstm cell output. Then it goes through a dense layer W2. So you can set activation function for W2.