Build · Topology (matrix)
delay_line_backward¶
Build a forward delay line plus a backward superdiagonal connection.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='delay_line_backward', spectral_radius=0.9, seed=7)
| parameter | default |
|---|---|
weight |
0.1 |
backward_weight |
0.1 |
shift |
1 |
backward_shift |
1 |
dtype |
torch.float32 |
device |
None |
Override parameters with recurrent_initializer=("delay_line_backward", {...}) or
pre-configure with get_recurrent_initializer("delay_line_backward", ...).
The existing topology= spelling and get_topology() also work.
A layer spectral_radius rescales this matrix after construction. Use get_recurrent_initializer(..., rescale=False) to keep the native scale.
See also¶
- Initialization — every way to specify structure
- Reference — the registry API
