diff --git a/src/learn.jl b/src/learn.jl index 7fc04f6..d704a41 100644 --- a/src/learn.jl +++ b/src/learn.jl @@ -95,7 +95,7 @@ function learn!(n::T, firedNeurons, nExInType) where T<:computeNeuron # normalize wRec peak to prevent input signal overwhelming neuron normalizePeak!(n.wRec, n.wRecChange, 2) # set weight that fliped sign to 0 for random new connection - n.wRec .*= nonFlipedSign + # n.wRec .*= nonFlipedSign capMaxWeight!(n.wRec) # cap maximum weight synapticConnStrength!(n) @@ -111,7 +111,7 @@ function learn!(n::T, firedNeurons, nExInType, totalInputPort) where T<:outputNe # normalize wRec peak to prevent input signal overwhelming neuron normalizePeak!(n.wRec, n.wRecChange, 2) # set weight that fliped sign to 0 for random new connection - n.wRec .*= nonFlipedSign + # n.wRec .*= nonFlipedSign capMaxWeight!(n.wRec) # cap maximum weight # synapticConnStrength!(n) #CHANGE