RNN)
in 1990, where each layer uses the following recurrent transformation:
where , is the hidden state of RNN layer for
time , is the input at time and
is the hidden state of the previous layer at ,
are static exogenous inputs,
historic exogenous, are future exogenous
available at the time of the prediction. The available activations are
tanh, and relu. The predictions are obtained by transforming the
hidden states into contexts , that are decoded
and adapted into through MLPs.
References
- Jeffrey L. Elman (1990). “Finding Structure in Time”.
- Cho, K., van Merrienboer, B., Gülcehre, C., Bougares, F., Schwenk, H., & Bengio, Y. (2014). Learning phrase representations using RNN encoder-decoder for statistical machine translation.

RNN
RNN
BaseModel
RNN
Multi Layer Elman RNN (RNN), with MLP decoder.
The network has tanh or relu non-linearities, it is trained using
ADAM stochastic gradient descent. The network accepts static, historic
and future exogenous data.
Parameters:
RNN.fit
fit method, optimizes the neural network’s weights using the
initialization parameters (learning_rate, windows_batch_size, …)
and the loss function as defined during the initialization.
Within fit we use a PyTorch Lightning Trainer that
inherits the initialization’s self.trainer_kwargs, to customize
its inputs, see PL’s trainer arguments.
The method is designed to be compatible with SKLearn-like classes
and in particular to be compatible with the StatsForecast library.
By default the model is not saving training checkpoints to protect
disk memory, to get them change enable_checkpointing=True in __init__.
Parameters:
Returns:
RNN.predict
Trainer execution of predict_step.
Parameters:
Returns:

