R6 class representing the recurrent layer of a Elmam or Jordan recurrent neural network
R6 class representing the recurrent layer of a Elmam or Jordan recurrent neural network
modello::module -> module.RecUnit
new()Initialisation method
module.RecUnit$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: act(Wx . op(x) + Wh . h + B)
module.RecUnit$op(h, x)
hnumber input from previous time steps
xnumber input from the current timestep
pars()Returns the parameters of the module as list with entries: W0 = weight matrix for past inputs, W = weight matrix for current input, and B = bias matrix
module.RecUnit$pars()
Returns a flat list with the parametrs of the module
clone()The objects of this class are cloneable with this method.
module.RecUnit$clone(deep = FALSE)
deepWhether to make a deep clone.