Skip to content

Commit 37acc47

Browse files
docs: add more detailed kwargs for minimal inits
1 parent d9f488a commit 37acc47

File tree

1 file changed

+57
-4
lines changed

1 file changed

+57
-4
lines changed

src/esn/esn_inits.jl

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ Create and return a delay line reservoir matrix [^rodan2010].
593593
# Keyword arguments
594594
595595
- `weight`: Determines the value of all connections in the reservoir.
596+
This can be provided as a single value or an array. In case it is provided as an
597+
array please make sure that the lenght of the array matches the lenght of the sub-diagonal
598+
you want to populate.
596599
Default is 0.1.
597600
- `shift`: delay line shift. Default is 1.
598601
- `return_sparse`: flag for returning a `sparse` matrix.
@@ -665,10 +668,17 @@ Creates a matrix with backward connections as described in [^rodan2010].
665668
# Keyword arguments
666669
667670
- `weight`: The weight determines the absolute value of
668-
forward connections in the reservoir. Default is 0.1
669-
671+
forward connections in the reservoir.
672+
This can be provided as a single value or an array. In case it is provided as an
673+
array please make sure that the lenght of the array matches the lenght of the sub-diagonal
674+
you want to populate.
675+
Default is 0.1
670676
- `fb_weight`: Determines the absolute value of backward connections
671-
in the reservoir. Default is 0.2
677+
in the reservoir.
678+
This can be provided as a single value or an array. In case it is provided as an
679+
array please make sure that the lenght of the array matches the lenght of the sub-diagonal
680+
you want to populate.
681+
Default is 0.2
672682
- `return_sparse`: flag for returning a `sparse` matrix.
673683
Default is `false`.
674684
- `delay_kwargs` and `fb_kwargs`: named tuples that control the kwargs for the
@@ -739,9 +749,14 @@ Create a cycle jumps reservoir [^Rodan2012].
739749
# Keyword arguments
740750
741751
- `cycle_weight`: The weight of cycle connections.
752+
This can be provided as a single value or an array. In case it is provided as an
753+
array please make sure that the lenght of the array matches the lenght of the cycle
754+
you want to populate.
742755
Default is 0.1.
743-
744756
- `jump_weight`: The weight of jump connections.
757+
This can be provided as a single value or an array. In case it is provided as an
758+
array please make sure that the lenght of the array matches the lenght of the jumps
759+
you want to populate.
745760
Default is 0.1.
746761
- `jump_size`: The number of steps between jump connections.
747762
Default is 3.
@@ -816,6 +831,9 @@ Create a simple cycle reservoir [^rodan2010].
816831
# Keyword arguments
817832
818833
- `weight`: Weight of the connections in the reservoir matrix.
834+
This can be provided as a single value or an array. In case it is provided as an
835+
array please make sure that the lenght of the array matches the lenght of the cycle
836+
you want to populate.
819837
Default is 0.1.
820838
- `return_sparse`: flag for returning a `sparse` matrix.
821839
Default is `false`.
@@ -1282,8 +1300,14 @@ W_{i,j} =
12821300
# Keyword arguments
12831301
12841302
- `cycle_weight`: Weight of the cycle connections in the reservoir matrix.
1303+
This can be provided as a single value or an array. In case it is provided as an
1304+
array please make sure that the lenght of the array matches the lenght of the cycle
1305+
you want to populate.
12851306
Default is 0.1.
12861307
- `selfloop_weight`: Weight of the self loops in the reservoir matrix.
1308+
This can be provided as a single value or an array. In case it is provided as an
1309+
array please make sure that the lenght of the array matches the lenght of the diagonal
1310+
you want to populate.
12871311
Default is 0.1.
12881312
- `return_sparse`: flag for returning a `sparse` matrix.
12891313
Default is `false`.
@@ -1366,6 +1390,9 @@ W_{i,j} =
13661390
# Keyword arguments
13671391
13681392
- `cycle_weight`: Weight of the cycle connections in the reservoir matrix.
1393+
This can be provided as a single value or an array. In case it is provided as an
1394+
array please make sure that the lenght of the array matches the lenght of the cycle
1395+
you want to populate.
13691396
Default is 0.1.
13701397
- `selfloop_weight`: Weight of the self loops in the reservoir matrix.
13711398
Default is 0.1.
@@ -1448,8 +1475,14 @@ W_{i,j} =
14481475
# Keyword arguments
14491476
14501477
- `weight`: Weight of the cycle connections in the reservoir matrix.
1478+
This can be provided as a single value or an array. In case it is provided as an
1479+
array please make sure that the lenght of the array matches the lenght of the cycle
1480+
you want to populate.
14511481
Default is 0.1.
14521482
- `selfloop_weight`: Weight of the self loops in the reservoir matrix.
1483+
This can be provided as a single value or an array. In case it is provided as an
1484+
array please make sure that the lenght of the array matches the lenght of the diagonal
1485+
you want to populate.
14531486
Default is 0.1.
14541487
- `return_sparse`: flag for returning a `sparse` matrix.
14551488
Default is `false`.
@@ -1536,8 +1569,14 @@ W_{i,j} =
15361569
# Keyword arguments
15371570
15381571
- `weight`: Weight of the cycle connections in the reservoir matrix.
1572+
This can be provided as a single value or an array. In case it is provided as an
1573+
array please make sure that the lenght of the array matches the lenght of the cycle
1574+
you want to populate.
15391575
Default is 0.1.
15401576
- `selfloop_weight`: Weight of the self loops in the reservoir matrix.
1577+
This can be provided as a single value or an array. In case it is provided as an
1578+
array please make sure that the lenght of the array matches the lenght of the diagonal
1579+
you want to populate.
15411580
Default is 0.1.
15421581
- `return_sparse`: flag for returning a `sparse` matrix.
15431582
Default is `false`.
@@ -1619,9 +1658,23 @@ W_{i,j} =
16191658
# Keyword arguments
16201659
16211660
- `weight`: Weight of the cycle connections in the reservoir matrix.
1661+
This can be provided as a single value or an array. In case it is provided as an
1662+
array please make sure that the lenght of the array matches the lenght of the sub-diagonal
1663+
you want to populate.
16221664
Default is 0.1.
16231665
- `return_sparse`: flag for returning a `sparse` matrix.
16241666
Default is `false`.
1667+
- `sampling_type`: Sampling that decides the distribution of `weight` negative numbers.
1668+
If set to `:no_sample` the sign is unchanged. If set to `:bernoulli_sample!` then each
1669+
`weight` can be positive with a probability set by `positive_prob`. If set to
1670+
`:irrational_sample!` the `weight` is negative if the decimal number of the
1671+
irrational number chosen is odd. Default is `:no_sample`.
1672+
- `positive_prob`: probability of the `weight` being positive when `sampling_type` is
1673+
set to `:bernoulli_sample!`. Default is 0.5
1674+
- `irrational`: Irrational number whose decimals decide the sign of `weight`.
1675+
Default is `pi`.
1676+
- `start`: Which place after the decimal point the counting starts for the `irrational`
1677+
sign counting. Default is 1.
16251678
16261679
# Examples
16271680

0 commit comments

Comments
 (0)