Skip to main content
. Author manuscript; available in PMC: 2021 Mar 22.
Published in final edited form as: IEEE Trans Med Imaging. 2018 Jun 25;37(12):2695–2703. doi: 10.1109/TMI.2018.2849959

Algorithm 1.

Examination of the LSTM Gates

Input: Trained model parameters “Θ={W,B}”, input data “X ”, number of time-steps “T”, number of input sequence “N”.
Output: States activation “S”, gates activation “G
Initialization: Set the state of each cell “inStates” to zero.
1: for i = 0 to N do
2:   for t = 0 to T do
3:    xX(i, :)
4:    {S(i,t),G(i,t)}Step(x,inStates(i,t),W,B)
5:    inState(i,t)S(i,t)
6:   end for
7: end for
8: return S, G