You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An lstm cell requires the sigmoid (or rather any differentiable function with an image [0, 1]) for gate activation, the other activation is used for input to hidden state and output, i.e. an LSTM cell uses different activation functions for different parts of the cell.
To change the tanh activations you'll have to switch gfunc/gprime and hfunc/hprime in ocrolib/lstm.py to ReLu and its derivative respectively which should be f'(x) = 1: x>0 if I'm not entirely mistaken.
Currently researching on which activation function affects ocropus models accuracy
The text was updated successfully, but these errors were encountered: