Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"

[compat]
CellularAutomata = "0.0.2"
DifferentialEquations = "7.15.0"
DifferentialEquations = "7.16.1"
Documenter = "1"
OrdinaryDiffEq = "6"
Plots = "1"
Expand Down
6 changes: 4 additions & 2 deletions src/esn/esn_inits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,8 @@ function low_connectivity(rng::AbstractRNG, ::Type{T}, dims::Integer...;
end

function build_cycle(::Val{false}, rng::AbstractRNG, ::Type{T}, res_size::Int;
in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: Number}
in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <:
Number}
reservoir_matrix = DeviceAgnostic.zeros(rng, T, res_size, res_size)
for idx in 1:res_size
selected = randperm(rng, res_size)[1:in_degree]
Expand All @@ -1200,7 +1201,8 @@ function build_cycle(::Val{false}, rng::AbstractRNG, ::Type{T}, res_size::Int;
end

function build_cycle(::Val{true}, rng::AbstractRNG, ::Type{T}, res_size::Int;
in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <: Number}
in_degree::Integer=1, radius::Number=T(1.0), cut_cycle::Bool=false) where {T <:
Number}
reservoir_matrix = DeviceAgnostic.zeros(rng, T, res_size, res_size)
perm = randperm(rng, res_size)
for idx in 1:(res_size - 1)
Expand Down
Loading