experiment

This commit is contained in:
2023-05-29 15:02:26 +07:00
parent fafaac9a45
commit 8f9b2dca1d

View File

@@ -95,7 +95,7 @@ function learn!(n::T, firedNeurons, nExInType) where T<:computeNeuron
# normalize wRec peak to prevent input signal overwhelming neuron # normalize wRec peak to prevent input signal overwhelming neuron
normalizePeak!(n.wRec, n.wRecChange, 2) normalizePeak!(n.wRec, n.wRecChange, 2)
# set weight that fliped sign to 0 for random new connection # set weight that fliped sign to 0 for random new connection
n.wRec .*= nonFlipedSign # n.wRec .*= nonFlipedSign
capMaxWeight!(n.wRec) # cap maximum weight capMaxWeight!(n.wRec) # cap maximum weight
synapticConnStrength!(n) 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 # normalize wRec peak to prevent input signal overwhelming neuron
normalizePeak!(n.wRec, n.wRecChange, 2) normalizePeak!(n.wRec, n.wRecChange, 2)
# set weight that fliped sign to 0 for random new connection # set weight that fliped sign to 0 for random new connection
n.wRec .*= nonFlipedSign # n.wRec .*= nonFlipedSign
capMaxWeight!(n.wRec) # cap maximum weight capMaxWeight!(n.wRec) # cap maximum weight
# synapticConnStrength!(n) #CHANGE # synapticConnStrength!(n) #CHANGE