refractoring

This commit is contained in:
2023-05-16 23:24:56 +07:00
parent f53adf288d
commit fbc40ccef4
3 changed files with 4 additions and 12 deletions

View File

@@ -274,14 +274,6 @@ function adjust_internal_learning_rate!(n::compute_neuron)
n.internal_learning_rate * 1.005
end
function push_epsilon_rec_a!(n::lif_neuron)
# skip
end
function push_epsilon_rec_a!(n::alif_neuron)
push!(n.epsilonRecA, 0)
end
""" compute synaptic connection strength. bias will shift currentStrength to fit into
sigmoid operating range which centred at 0 and range is -37 to 37.
# Example
@@ -307,8 +299,8 @@ function synapticConnStrength(currentStrength::AbstractFloat, updown::String, bi
end
function synapticConnStrength(n::compute_neuron)
for connStrength in n.synapticStrength
for (i, connStrength) in enumerate(n.synapticStrength)
n.
synapticConnStrength