Build · Topology (graph)
barabasi_albert¶
Generates a Barabási-Albert scale-free network.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, recurrent_initializer='barabasi_albert', spectral_radius=0.9, seed=7)
| parameter | default |
|---|---|
m |
1 |
directed |
False |
Override parameters with recurrent_initializer=("barabasi_albert", {...}) or
pre-configure with get_recurrent_initializer("barabasi_albert", ...).
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
