Description Super class Methods Author(s)
R6 class representing an LSTM.
R6 class representing an LSTM.
modello::module
-> module.LSTM
new()
Initialisation method
module.LSTM$new(tx, nh, nx, acth, ny, acty, par.h = FALSE, par.g = FALSE)
tx
transposition flag. If > 0 op(x) = t(x)
nh
integer vector of length equal to the hidden layes indicating the number of hidden units for each layer
nx
integer, number if inputs
acth
activation function for the recurrent units
ny
integer, number of outputs of the last fully connected layer
acty
activation function for the last fully connected layer
par.h
logical, true => the initial hidden state is treated as a paramter of the optimisation
par.g
logical, true => the initial cell state is treated as a paramter of the optimisation
save()
Save the module to an RDS file
module.LSTM$save(of, ...)
of
output file name or path
...
additional arguments to be passed to the function base::saveRDS
op()
Runs the calculation stored in the module
module.LSTM$op(X)
X
'number', module inputs
pars()
Returns a list with the model parameters
module.LSTM$pars()
rus()
Returns a list with the recurrent units
module.LSTM$rus()
H()
Returns the initial hidden state
module.LSTM$H()
fc()
Returns the final fully connected layer
module.LSTM$fc()
clone()
The objects of this class are cloneable with this method.
module.LSTM$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.