A SimpleRNN layer processes batches of sequences by updating recurrent state across timesteps. It accepts inputs shaped as (batch_size, timesteps, input_features). section 13.3.2
A SimpleRNN with full sequence output
num_features <- 14 steps <- 120 inputs <- keras_input(shape = c(steps, num_features)) outputs <- inputs |> layer_simple_rnn(16, return_sequences = TRUE)
SimpleRNN is a basic recurrent baseline, but it rarely handles long-term dependencies effectively because of the vanishing-gradient problem. LSTM and GRU layers provide alternatives. section 13.3.2

