Skip to content

Build · Topology (matrix)

toeplitz

Build a deterministic Toeplitz recurrent matrix (constant per diagonal).

from resdag.layers import ESNLayer

reservoir = ESNLayer(500, feedback_size=3, topology="toeplitz", spectral_radius=0.9)
parameter default
weight 0.1
decay 1.0
bandwidth None

Override any parameter with the tuple spec — topology=("toeplitz", {...}) — or pre-configure with get_topology("toeplitz", ...). Scaling to a target spectral radius happens after construction, whatever the source.

See also