class

ML::RecurrentLayer

Inherits Reference < Object

Recurrent neural network layer (simple RNN)

Constructors

new(input_size : Int32, hidden_size : Int32)

Instance methods

biases
forward(input : Array(Float64)) : Array(Float64)

Forward pass with recurrence

get_state

Get current hidden state

reset_state

Reset hidden state

set_state(state : Array(Float64))

Set hidden state

weights_input
weights_recurrent