Skip to content

Build · Topology (graph)

zeros

Create the zero (edgeless) graph with n nodes.

zeros

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

reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='zeros', spectral_radius=None, seed=7)

Override parameters with recurrent_initializer=("zeros", {...}) or pre-configure with get_recurrent_initializer("zeros", ...). The existing topology= spelling and get_topology() also work.

This builder has a zero eigenvalue radius. A nonzero outer radius cannot be obtained by multiplying its weights; control the connection magnitude through the builder's own parameters.

See also