Build · Topology (graph)
regular¶
Generates a regular ring-lattice graph (each node has k neighbors).
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, topology="regular", spectral_radius=0.9)
| parameter | default |
|---|---|
k |
— |
directed |
False |
self_loops |
False |
random_weights |
True |
Override any parameter with the tuple spec — topology=("regular", {...}) —
or pre-configure with get_topology("regular", ...). Scaling to a target
spectral radius happens after construction, whatever the source.
See also¶
- Initialization — every way to specify structure
- Reference — the registry API
