Recurrent neural networks¶
This page documents two categories of recurrent objects:
Composable cells — raw recurrent units with no output projection, designed to be embedded inside larger architectures (TCN, Transformers, encoder-decoders). They expose only a
forwardmethod; callingtrain_onorpredictraisesNotImplementedError.Complete models — cells wrapped with an output projection layer and the full
BaseNeuralNettraining API (set_optimizer,train_on,predict). Use these directly for walk-forward financial forecasting.
The three architectures follow a complexity ladder: vanilla Elman
RecurrentNeuralNetwork → gated
GatedRecurrentUnit (reset + update gates) →
LongShortTermMemory (explicit cell state for long
dependencies).
Composable cells
Raw GRU and LSTM cells without output projection. Pass them as sub-modules to build custom architectures.
|
GRU cell — public composable building block. |
|
LSTM cell — public composable building block. |
Complete models
Ready-to-train models with output projection and the full
BaseNeuralNet API.
|
Neural network with vanilla Elman recurrent architecture. |
|
Gated Recurrent Unit neural network. |
|
Long Short-Term Memory neural network. |