class

ML::RecurrentLayer

Inherits Reference < Object

Recurrent neural network layer (simple RNN)

Constructors

new(input_size : Int32, hidden_size : Int32)
Source

Instance methods

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

Forward pass with recurrence

Source
get_state

Get current hidden state

Source
reset_state

Reset hidden state

Source
set_state(state : Array(Float64))

Set hidden state

Source
weights_input
Source
weights_recurrent
Source