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)
tx
transposition flag. If > 0 op(x) = t(x)
nh
number of input from the previous time steps
nx
number of input form the current time step
act
activation 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)
h
past hidden state
g
past cell state
x
current 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)
deep
Whether 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.