Initializer sign patterns

Sign patterns modify the signs of weights produced by compatible input and reservoir initializers. Passing signs = nothing leaves the generated signs unchanged.

Deprecated keyword API

The sampling_type keyword and its sampler-specific forwarded keywords are deprecated. Replace them with a sign-pattern object passed as signs. For example, replace sampling_type = :bernoulli_sample!, positive_prob = 0.25 with signs = RandomSigns(0.25).

minimal_init now also defaults to signs = nothing; use RandomSigns() to retain its former default Bernoulli sign flipping explicitly.

ReservoirComputing.RandomSignsType
RandomSigns([positive_probability = 0.5])

Independently preserve each weight's sign with probability positive_probability and flip it otherwise.

source
ReservoirComputing.RegularSignsType
RegularSigns([strides = 2])

Flip signs at positions determined by one stride or a repeating tuple of strides. An integer stride n flips every nth weight. A tuple advances cumulatively by each stride in a repeating cycle.

source