Build · Topology (graph)
dendrocycle¶
Construct a directed dendrocycle graph with optional small-world chords on the core ring.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='dendrocycle', spectral_radius=0.9, seed=7)
| parameter | default |
|---|---|
c |
0.5 |
d |
0.2 |
core_weight |
1.0 |
dendritic_weight |
1.0 |
quiescent_weight |
1.0 |
L |
None |
w |
0.5 |
alpha |
1.0 |
Override parameters with recurrent_initializer=("dendrocycle", {...}) or
pre-configure with get_recurrent_initializer("dendrocycle", ...).
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
