From d1fe518739b1b322a64f6b9f261273cdd431d822 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 18 May 2023 07:27:32 +0700 Subject: [PATCH] bug fix --- src/snn_utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snn_utils.jl b/src/snn_utils.jl index ee1eab5..a72ffb5 100644 --- a/src/snn_utils.jl +++ b/src/snn_utils.jl @@ -279,7 +279,7 @@ end function synapticConnStrength!(n::Union{computeNeuron, outputNeuron}) for (i, connStrength) in enumerate(n.synapticStrength) # check whether connStrength increase or decrease based on usage from n.epsilonRec - #WORKING n.epsilonRec is all 0.0 why? may b it was reset? + #WORKING n.epsilonRec is all 0.0 why? may b it was reset? ANS: model fire at this timestep and gets reset epsilonRec during ΔwRecChange compute updown = n.epsilonRec[i] == 0.0 ? "down" : "up" updatedConnStrength = synapticConnStrength(connStrength, updown) updatedConnStrength = GeneralUtils.limitvalue(updatedConnStrength,