Skip to content

Build · Topology (graph)

chord_dendrocycle

Dendrocycle + optional small-world chords on the core ring.

chord_dendrocycle

Connectivity and weight matrix on a small reservoir.
from resdag.layers import ESNLayer

reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='chord_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=("chord_dendrocycle", {...}) or pre-configure with get_recurrent_initializer("chord_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