Build · Topology (matrix)
cycle_jumps¶
Add bidirectional jumps between regularly spaced nodes of a cycle.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='cycle_jumps', spectral_radius=0.9, seed=7)
| parameter | default |
|---|---|
cycle_weight |
0.1 |
jump_weight |
0.1 |
jump_size |
3 |
dtype |
torch.float32 |
device |
None |
Override parameters with recurrent_initializer=("cycle_jumps", {...}) or
pre-configure with get_recurrent_initializer("cycle_jumps", ...).
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
