tokens: LSTM Autoencoder : In a general manner , a recurrent neural network ( RNN ) is an ANN where the output of a given hidden layer does not depend only on the output of the previous layer ( as in a feedforward architecture ) but also on the internal state of the network .