Skip to content

Commit

Permalink
fixing minimal_init
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinuzziFrancesco committed Oct 17, 2024
1 parent 5aca752 commit c695740
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/esn/esn_input_layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ function minimal_init(rng::AbstractRNG, ::Type{T}, dims::Integer...;
return layer_matrix
end

function _create_bernoulli(p::T,
function _create_bernoulli(p::Number,
res_size::Int,
in_size::Int,
weight::T,
weight::Number,
rng::AbstractRNG,
::Type{T}) where {T <: Number}
input_matrix = zeros(T, res_size, in_size)
Expand All @@ -210,7 +210,7 @@ function _create_irrational(irrational::Irrational,
start::Int,
res_size::Int,
in_size::Int,
weight::T,
weight::Number,
rng::AbstractRNG,
::Type{T}) where {T <: Number}
setprecision(BigFloat, Int(ceil(log2(10) * (res_size * in_size + start + 1))))
Expand Down

0 comments on commit c695740

Please sign in to comment.