Warm tip: This article is reproduced from stackoverflow.com, please click
deep-learning keras neural-network recurrent-neural-network keras-layer

Default activation function in Keras

发布于 2020-03-27 15:45:29

Does anyone know the default activation function used in the recurrent layers in Keras? https://keras.io/layers/recurrent/

It says the default activation function is linear. But what about the default recurrent activation function. Nothing is mentioned about that. Any help would be highly appreciated. Thanks in advance

Questioner
Kiran Baktha
Viewed
87
Marcin Możejko 2017-09-14 15:05

Keras Recurrent is an abstact class for recurrent layers. In Keras 2.0 all default activations are linear for all implemented RNNs (LSTM, GRU and SimpleRNN). In previous versions you had:

  • linear for SimpleRNN,
  • tanh for LSTM and GRU.