Build · Topology (graph)
ring_chord¶
Generates a small-world digraph with a ring and backward chords. - ring edges i -> (i+1) mod n with weight 1.0 - backward chords i -> (i - L_k) mod n with weight w * alpha**k
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, topology="ring_chord", spectral_radius=0.9)
| parameter | default |
|---|---|
L |
1 |
w |
0.5 |
alpha |
1.0 |
Override any parameter with the tuple spec — topology=("ring_chord", {...}) —
or pre-configure with get_topology("ring_chord", ...). Scaling to a target
spectral radius happens after construction, whatever the source.
See also¶
- Initialization — every way to specify structure
- Reference — the registry API
