add_jumps!
ReservoirComputing.add_jumps! — Function
add_jumps!([rng], reservoir_matrix, weight, jump_size;
signs = nothing, start = 1)Adds jumps to a given reservoir_matrix with chosen weight and determined jump_size. weight can be either a number or an array.
Arguments
rng: Random number generator. Default isUtils.default_rng()from WeightInitializers.reservoir_matrix: matrix to be changed.weight: weight to add as a simple cycle. Can be either a single number or an array.jump_size: size of the jump's distance.
Keyword arguments
signs: Controls sign flips. UseRandomSigns,RegularSigns, orIrrationalDigitSigns. Passnothingto leave signs unchanged. Default isnothing.
Examples
julia> matrix = zeros(Float32, 5, 5);
julia> add_jumps!(matrix, 1.0, 2);
julia> matrix[1, 3] == matrix[3, 1] == matrix[3, 5] == matrix[5, 3] == 1.0f0
true