Skip to content

Build · Topology (matrix)

orthogonal

Build a random orthogonal matrix via QR decomposition.

orthogonal

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

reservoir = ESNLayer(500, feedback_size=3, topology="orthogonal", spectral_radius=0.9)
parameter default
gain 1.0

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

See also