Build · Topology (matrix)
self_loop_cycle¶
Build a unidirectional cycle with a self-loop on every node.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, topology="self_loop_cycle", spectral_radius=0.9)
| parameter | default |
|---|---|
cycle_weight |
0.1 |
self_loop_weight |
0.1 |
Override any parameter with the tuple spec — topology=("self_loop_cycle", {...}) —
or pre-configure with get_topology("self_loop_cycle", ...). Scaling to a target
spectral radius happens after construction, whatever the source.
See also¶
- Initialization — every way to specify structure
- Reference — the registry API