From 8f9b2dca1de3c17550b3b5d2b8487269d32e9833 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Mon, 29 May 2023 15:02:26 +0700 Subject: [PATCH] experiment --- src/learn.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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