All neural network models were optimized using the Adam optimizer, targeting minimization of the mean squared error (MSE) objective function. The simple feed-forward neural network comprised two fully connected linear layers with sigmoid activation, structured in an autoencoder-like design. For the recurrent neural network (RNN), I defined the hidden state as