Description Super class Methods Author(s)
R6 class representing the recurrent layer of a LSTM network
R6 class representing the recurrent layer of a LSTM network
modello::module -> module.LstmUnit
new()Initialisation method
module.LstmUnit$new(tx, nh, nx, act)
txtransposition flag. If > 0 op(x) = t(x)
nhnumber of input from the previous time steps
nxnumber of input form the current time step
actactivation function
op()Performs: input_gate = Wxi . op(x) + Whi . h + Bi forget_gate = Wxf . op(x) + Whf . h + Bf output_gate = Wxo . op(x) + Who . h + Bo current_cell = act(Wxg . op(x) + Whg . h + Bg) cell_sate = forget_gate * cell_previous + input_gate * cell_current hidden_state = output_gate * act(cell_state) Returns a list composed by hidde_state and cell_state
module.LstmUnit$op(h, g, x)
hpast hidden state
gpast cell state
xcurrent input
pars()Returns a list with the model parameters
module.LstmUnit$pars()
clone()The objects of this class are cloneable with this method.
module.LstmUnit$clone(deep = FALSE)
deepWhether to make a deep clone.
Filippo Monari
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.